jargon

Frontend & browser·State, data and re-rendering

the component subscribes to one field of the store, so changes to the rest do not wake it up.

Selector

Also calledselector function, state selector

A function that extracts the slice of state a component actually needs, letting the subscription compare just that slice. It is how a large store avoids re-rendering the world on every change. The trap is a selector that builds a new object or array each call, which is a fresh reference every time and defeats the comparison it exists to enable.

Commonly confused with