⛄Snowberb⛄ – 07-57 Feb 9
Having an interceptor do redirect to the login page when a certain status is seen, how could I do to not run the code for each of the api calls?
auth.onLogout()
gets called for each one of the responses that get 401
UU
Unknown User•435d ago
S
Sniberb•435d ago
I cant do that. I have to listen for a 401
I ended up using localstorage
UU
Unknown User•435d ago
230KMembers
View on DiscordMore Posts
EduardS – 18-34 Feb 8How to solve calling hooks conditionally here?
I have this `data` coming from `validateData` that rHow to avoid calling hook conditionally here?I have this `data` coming from `validateData` that return the `rawData` if valid otherwise `null`. Endo – 07-14 Feb 8Does anyone know how to autoplay video with sound? I know there is a Autoplay policy. but for exampkairu – 14-23 Feb 7I have a section in my code I don't really understand.
`function nameOfFunction(a, b = null, c = ✅ – HalcyonXII – 12-44 Feb 4why this returns empty⛄Snowberb⛄ – 11-53 Feb 2What is it called the date that we use to calculate the time on JS? This description sucks but it wa