DEV Community

Discussion on: Does Redux minimize re-rendering?

Collapse
 
jannikwempe profile image
Jannik Wempe

As far as I know:

All components using a context will rerender if the context changes. So you should not use one big shared context but only store related information in the same context (e.g. theme, auth, used language; these are common use cases).

Also you don't want to use context if it's state changes frequently (e.g. inputs, some frequently calculated values...).

I only use redux if there is some global state which can change frequently. Otherwise I prefer the context API + hooks.