Skip to content
Discussion options

You must be logged in to vote

Found the answer it was just an issue with axios interceptors just remove the client.interceptors.response ..... the other interceptors are fine like the client.interceptors.request

  useEffect(() => {
    setLoggedIn(checkAuth());
    client.interceptors.request.use(
      (config) => {
        setLoggedIn(checkAuth());
        return config;
      },
      (error) => {
        setLoggedIn(checkAuth());
        Sentry.captureException(error);
        return error;
      }
    );
    return history.listen(() => {
      setLoggedIn(checkAuth());
    });
  }, []);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by daiky00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant