Quantcast
Channel: User HMR - Stack Overflow
Viewing all articles
Browse latest Browse all 43

Comment by HMR on Why using a createSelector function in another file causes re-render vs creating "inline", both with useMemo

$
0
0
@LoyalPotato Looking at it more closely you may be right, both end up with a component having its own selector and both should in theory not re render as long as status does not change. Maybe it is because strictmode or something else is causing the re renders. Is it possible to create a minimal example reproducing this issue?

Viewing all articles
Browse latest Browse all 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>