Memory Leak Warning via useSignIn() #30
Unanswered
dominikjannis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Stumbled upon this today while refactoring a project of mine to use the Hooks provided by this package. Upon successful Login i get the
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.
warning, which points to
const [credentials, setCredentials] = Object(react__WEBPACK_IMPORTED_MODULE_1__["useState"])({ email: "", password: "" });
as the cause for the unwanted state update. Since i just refactored existing code and did not get this behavior before, i was wondering what might cause this to happen?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions