Interview practice question
A store selector causes components to re-render on every change
Frontend Engineering · State Management and Data Fetching · Intermediate
Components using a Zustand or Redux selector re-render on every store update, even when their data hasn't changed. Why, and how do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Selector returns new object/array each time.
- Reference changes → re-render.
- Select primitives or use shallow equality.
- Memoised selectors (Reselect).
- Split selectors.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.