arrow_backBACK TO DRILLS
White Beltusereducer
Reading State Immediately After dispatch
A component calls dispatch({ type: 'incremented_age' }) and immediately logs state.age afterward. Why does the log still show the old value?
A component calls dispatch({ type: 'incremented_age' }) and immediately logs state.age afterward. Why does the log still show the old value?