ek9091 / bluerail

0 stars 0 forks source link

Login causing component state to update when unmounted #2

Open ek9091 opened 3 years ago

ek9091 commented 3 years ago

Receiving the following error message in the browser when logging into the app:

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. LoginForm@webpack-internal:///./src/lib/app/ui-components/LoginForm.js:26:73 div Panel@webpack-internal:///./src/lib/shared/ui-components/Panel.js:11:18 div div div div div FormLayout@webpack-internal:///./src/lib/app/ui-components/FormLayout.js:24:18 react_devtools_backend.js:2430:23

What data is being updated as the component is umounted? What is causing the data to be updated as the component is unmounted?

ek9091 commented 3 years ago

Thinking I should add all the redirect logic in the same place. That might resolve this issue.