Closed roshangm1 closed 5 years ago
How do you use this library to manage promises properly when using useDispatch() hook to call a action creator ?
I am trying like this:
const dispatch = useDispatch(); dispatch(login())
Promise is resolved even if it goes to LOGIN_FAIL section in reducer.
How do you use this library to manage promises properly when using useDispatch() hook to call a action creator ?
I am trying like this:
Promise is resolved even if it goes to LOGIN_FAIL section in reducer.