DEV Community

Discussion on: How to handle 401 unauthorized error in a Redux React application

Collapse
 
abishekku profile image
Abishek Kumar

i am try to dispatch multiple actions on my component using useEffect. but it throws error 401 unauthorized. when i dispatch one api it works fine .but on multiple api ith throws error. i used several methods to like map function , setTimeout , promise.all, .then all get throws error.