DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
State Management Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
State Management
A selector `(s) => s.items.filter(i => i.active)` re-renders its component on every store update, even when `items` hasn't changed. Why?
A
filter() is broken in Zustand
B
filter() returns a NEW array reference every call, so reference equality never matches, exactly like the object-literal selector case
C
This selector is invalid syntax
D
Zustand doesn't support array state
Check Answer