DEV Community

Discussion on: Revisiting Redux with Context and Hooks

Collapse
 
trickydisco78 profile image
trickydisco78

Using this architecture does it mean that any changes to the store will cause re-renders to all the components even if they aren't interested in a piece of state?

Collapse
 
visarts profile image
Brendan B

I tested this out on a project I used to work on and didn't see re-renders, although it may depend on the implementation - I believe (although I could be wrong) that the way context works here in conjunction with the reducer hook means that state changes don't cause re-renders in anything but the components using that piece of state.