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
A reducer needs to timestamp a logged action. Given the Essential 'no side effects in reducers' rule, where should Date.now() actually be called?
A
Directly inside the reducer, it's a minor exception
B
In the action creator (or middleware) BEFORE dispatch, passing the timestamp as part of the action's payload — keeping the reducer a pure function of its inputs
C
Nowhere — reducers cannot support timestamps at all
D
Inside a useEffect in the component
Check Answer