Re:Ask HN: What is your favorite front end state management ...
by yawnr on Wednesday December 28, 2022 @04:00PM
(#34165895)
That's not true though. Every connected component subscribed to a particular slice of state updates...not every connected component, e.g. `useSelector(appState => !!appState.someThing)` only causes a re-render of the subscribed component if the value of `!!appState.someThing` changes. Unless that's what you meant in the first place but your tone and talk of memoization seemed to imply otherwise.
Not that with just react contexts, you can chose to split them up instead of or in addition to employing memoization