Skip to content
loading...

re: Revisiting Redux with Context and Hooks VIEW POST

FULL DISCUSSION
 

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?

 

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.

code of conduct - report abuse