context splitting

Dividing one large context into several smaller ones so components re-render only when the data they actually read changes.

In more detail

A common split puts state in one context and the stable dispatch function in another, so components that only send actions never re-render on state changes. It keeps each context value small and focused, so a change in one does not re-render readers of another.

Related terms

Taught in

References