DEV Community

Discussion on: React hooks in Axios interceptors

Collapse
 
carloscne profile image
Carlos Queiroz

Thanks for sharing!
In my case, using with useEffect does not work. Maybe I could use with a state to control if the useEffect finished it, but I really don't understand why I need useEffect