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
I am facing the same issue using React Native.
I also want to use this interceptor globally in my App so that I only instantiate it one time at the app-bootstrap.
@seanmavley are you also using React Native? If yes, then which fetch-library are you using to make your requests?
How did you solve it? I faced the same issue (different errors when importing it in multiple files), so I just did a "window.fetchIntercept = fetchIntercept" where I import it and then use "window.fetchIntercept" everywhere. Works without any issues.
I currently have this in my
auth.tsx
file, and it works fineLet's say I have
books.service.tsx
file, and I wanna make use of the already defined interceptor from theauth.tsx
in there. How do I go about it?The text was updated successfully, but these errors were encountered: