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
Hi, I want to redirect user to dashboard if the netwrok request connected to a redux action returns status 404 and do something else if it returs status 403 and 401.
How do I get status code from the network request in my middleware?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I want to redirect user to dashboard if the netwrok request connected to a redux action returns status 404 and do something else if it returs status 403 and 401.
How do I get status code from the network request in my middleware?
When I log
action.error
there is no status code.example middleware from docs
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions