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...
Redux Ecosystem Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
Redux Ecosystem
Why does calling state.items.push(newItem) inside a createSlice reducer NOT violate the 'never mutate' rule, unlike the identical call inside a hand-written reducer?
A
push() behaves differently inside createSlice
B
state.items is an Immer DRAFT proxy, not the real array — the push() call is intercepted and translated into a genuine immutable update of a NEW array, leaving the original untouched
C
createSlice reducers don't need to follow the immutability rule
D
This is actually still a violation and a bug
Check Answer