arrow_backBACK TO DRILLS
White Belt - Easyusereducer
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?