News for hackers. Stuff that matters.
Re:Ask HN: What is your favorite front end state management ... by joshribakoff on Monday December 26, 2022 @10:14AM (#34138222)
The same is true in redux, every action calls every reducer, every connected component renders. Thats why with and without redux you need performance optimizations like memoizing components and/or selectors

Not that with just react contexts, you can chose to split them up instead of or in addition to employing memoization

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.