You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2022. It is now read-only.
In Tutorial 1, indexActions.increment takes an argument and includes that argument in the action object it returns, but the reducer ignores the payload field so it's never used. I think you may have meant to do this in the reducer:
case 'incr':
return { counter: state.counter + action.payload };