lbry-desktop/ui
infinite-persistence 4d01452447 Fix reaction-selector reference invalidation
When comments are refreshed, each `Comment` gets rendered 4-5 times due to reference invalidation for `othersReacts` (the data didn't actually change).

For selectors without transformation, there is no need to memoize using `createSelector` -- just access it directly. Also, don't do things like `return a[id] || {}` in a reducer, because the reference to the empty object will be different on each call.

Always return directly from the state so that the same reference is returned.

This simple change avoided the wasted resources needed for `createSelector`, and reduced to render to just 2 (initial render, and when reactions are fetched).
2021-12-03 15:22:32 -05:00
..
component Fix reaction-selector reference invalidation 2021-12-03 15:22:32 -05:00
constants update trending to use trending_score 2021-12-02 20:42:51 -05:00
effects integrate all the things 2021-10-15 23:49:41 -04:00
modal fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
page remove copy 2021-12-02 21:13:47 -05:00
redux Fix reaction-selector reference invalidation 2021-12-03 15:22:32 -05:00
scss cleaner discover filters display 2021-12-02 20:43:32 -05:00
util ORDER typo 2021-12-02 21:19:42 -05:00
analytics.js fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Comment Moderation - time based bans 2021-09-03 07:17:56 +08:00
i18n.js cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
index.jsx update electron version to 11, some changes to app update 2021-11-27 10:18:56 -05:00
lbry.js integrate all the things 2021-10-15 23:49:41 -04:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js remove lbryinc web, update sitename, etc 2021-10-21 21:20:59 -04:00
rewards.js integrate all the things 2021-10-15 23:49:41 -04:00
store.js integrate all the things 2021-10-15 23:49:41 -04:00