4d01452447
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). |
||
---|---|---|
.. | ||
app.js | ||
blocked.js | ||
claims.js | ||
coinSwap.js | ||
collections.js | ||
comments.js | ||
content.js | ||
file.js | ||
file_info.js | ||
notifications.js | ||
publish.js | ||
reactions.js | ||
reportContent.js | ||
rewards.js | ||
search.js | ||
settings.js | ||
subscriptions.js | ||
sync.js | ||
tags.js | ||
user.js | ||
wallet.js | ||
websocket.js |