hackerweb icon indicating copy to clipboard operation
hackerweb copied to clipboard

Unnecessary calls to hw.news.render().

Open Leftium opened this issue 3 years ago • 0 comments

hw.news.render() is called for routes that don't display the news list, like https://hackerweb.app/#/about, or a specific news item.

This may result in unnecessary calls to the HN API. It also caused other problems in my fork.

I fixed it in my fork by moving the call like this: https://github.com/Leftium/hckrweb/commit/4845c1aeb3bd69cf9e8a5cadba56fa29b5c1f553

Leftium avatar May 07 '22 13:05 Leftium