I am using code very similar to this codepen, but when I login using an axios call I get this warning:
index.js:1 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
at Login (http://localhost:3000/static/js/main.chunk.js:2036:67)
at Route (http://localhost:3000/static/js/vendors~main.chunk.js:55437:29)
Probably I should cleanup my axios call somehow, but I do not really have clue how to do that?! Tried, but no success so far. I think the useEffect must be in the library as it is not in my code?!
I am using code very similar to this codepen, but when I login using an axios call I get this warning:
Probably I should cleanup my axios call somehow, but I do not really have clue how to do that?! Tried, but no success so far. I think the useEffect must be in the library as it is not in my code?!