firebase / firebaseui-web-react

React Wrapper for firebaseUI Web
Apache License 2.0
1.27k stars 250 forks source link

React strict mode compatibility #184

Closed jwhiting closed 2 years ago

jwhiting commented 2 years ago

As surfaced in #59, the FirebaseAuth and StyledFirebaseAuth components are not React strict-mode compatible. In particular both of these components fail to render and throw Error: AuthUI instance is deleted!

Unfortunately, React does not currently offer a way for any part of a strict-mode component tree to opt-out of strict mode (per https://github.com/facebook/react/issues/16362), so the only solution for people using this library appears to be turning strict mode off entirely, or going to great lengths to try to wrap the parts of the tree that do not include this component in strict-mode wrappers, which is extremely error-prone.

jwhiting commented 2 years ago

Actually given that #173 may fix this, and has been awaiting merge for a very long time with no activity, I assume this project is dead, and am closing this issue