lbry-desktop/ui/redux/actions
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
..
app.js improve sync 2021-11-30 15:03:38 -05:00
blocked.js Additional pop up menu options 2021-06-15 13:47:56 -04:00
claims.js cleanup 2021-10-15 23:49:41 -04:00
coinSwap.js CoinSwap: websocket + multi-coin 2021-04-13 14:02:25 -04:00
collections.js integrate all the things 2021-10-15 23:49:41 -04:00
comments.js Fix reaction-selector reference invalidation 2021-12-03 15:22:32 -05:00
content.js integrate all the things 2021-10-15 23:49:41 -04:00
file.js integrate all the things 2021-10-15 23:49:41 -04:00
file_info.js integrate all the things 2021-10-15 23:49:41 -04:00
notifications.js integrate all the things 2021-10-15 23:49:41 -04:00
publish.js strip out livestreams 2021-10-20 17:05:37 -04:00
reactions.js integrate all the things 2021-10-15 23:49:41 -04:00
reportContent.js Add 'ReportContent' actions/reducers/selectors 2021-04-21 10:49:31 -04:00
rewards.js integrate all the things 2021-10-15 23:49:41 -04:00
search.js integrate all the things 2021-10-15 23:49:41 -04:00
settings.js integrate all the things 2021-10-15 23:49:41 -04:00
subscriptions.js integrate all the things 2021-10-15 23:49:41 -04:00
sync.js improve sync 2021-11-30 15:03:38 -05:00
tags.js sync reducer stuff 2020-10-27 10:17:11 -04:00
user.js integrate all the things 2021-10-15 23:49:41 -04:00
wallet.js integrate all the things 2021-10-15 23:49:41 -04:00
websocket.js strip out livestreams 2021-10-20 17:05:37 -04:00