Problem Statement
Which of the following is a common anti-pattern in Redux?
Explanation
Directly mutating state in reducers is a critical anti-pattern that breaks Redux's immutability principle and can cause bugs where components don't re-render properly or state updates are lost. Without RTK's Immer integration, you must always return new objects using spread syntax or immutable update utilities to ensure React detects state changes. Other anti-patterns include putting non-serializable values in state, using excessive nesting, creating selectors inside components, and putting too much or too little state in Redux.
Practice Sets
This question appears in the following practice sets:
