News for hackers. Stuff that matters.
Re:Why React Re-Renders by acemarke on Wednesday August 17, 2022 @10:56AM (#32497259)
No. React-Redux only uses Context to pass down _the Redux store instance_, not _the current state value_. The store instance doesn't change, so that use of context will never cause later re-renders.

Instead, components directly call `store.subscribe()`, and check to see if they need to update after each dispatched action.

See my post "A (Mostly) Complete Guide to React Rendering Behavior" for more details:

- https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-...

There are no comments on this comment yet.