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
Hello. Can someone advice me how can I handle the 401 error globally in right way? I need to show my Login modal component once the 401 is occurred. I made something like this by RTK query doc:
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
-
Hello. Can someone advice me how can I handle the 401 error globally in right way? I need to show my Login modal component once the 401 is occurred. I made something like this by RTK query doc:
And in my modal component:
Can I stop other requests if I get a 401 error?
Beta Was this translation helpful? Give feedback.
All reactions