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
exportconstcounterReducer=handleActions({// definition for INCREMENT and RESET do not stand for the key here'INCREMENT': (state,action)=>{returnstate+action.payload},'RESET': (state,action)=>({counter: 0,}),},0)
Maybe misunderstanding here causes your problem?
If you want to use 'logos/counter/INCREMENT'/'logos/counter/RESET' as your key (action.type), you should write like this:
I tried using
and the INCREMENT part was never called
however
worked just fine
The text was updated successfully, but these errors were encountered: