Redux Connect vs Redux Hooks: A play
summary
Claims that Redux Hooks can replace connect but only if developers manage rerenders explicitly, demonstrated using useSelector with shallowEqual and a custom comparator to avoid spurious updates when object references change, and using useCallback for dispatch handlers plus memo on children to keep stable function and prop identities. Shows that useDispatch just returns dispatch and will recreate inline handlers unless memoized, and that with these tools behavior matches connect at the cost of more manual optimization.
AI-written summary · about
related talks
24mHooks, HOCS, and Tradeoffs (⚡️)
25mWill React Hooks Replace Redux?
17mReact hooks: the good, the bad and the ugly
25mRedux is dead, long live Redux!
19mThe elegance of decorated Redux
36mReusing Stateful Logic in React: HOC vs Render Props vs Hooks
27mHooked on React Hooks
15mRedux is dead, long live redux!
