arrow_backBACK TO DRILLS
White Beltusereducer

dispatch updates next render only

“A component calls dispatch({ type: 'incremented_age' }) and immediately logs state.age afterward. Why does the log still show the old value?”

BugDojo
BlogFAQ

© 2026. Carved in code.