the-road-to-react-with-firebase / react-firebase-authentication

🔥 Boilerplate Project for Authentication with Firebase in React.
https://www.robinwieruch.de
1.01k stars 296 forks source link

Sign up warning #3

Closed DanielKanyo closed 6 years ago

DanielKanyo commented 6 years ago

Hi. Thank you this project, it is awesome. After the registration I get this warning:

Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.

Please check the code for the SignUpForm component.

How can I fix this problem? Thank you.

rwieruch commented 6 years ago

It happens when setState is called while navigating away from the component where it is called. It's nothing to worry about, but you can checkout this SO answer to fix it maybe for yourself.

Thanks for reporting it 👍 I wouldn't want to introduce the fix in this project though, because it complicates things and would make the whole project much more complex for teaching purposes where I use this project :)