rakannimer / react-firebase

🔥Declarative React bindings for Firebase Auth & Realtime Database.

Home Page:https://react-firebase-js.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`IfFirebaseUnAuthed` causes React: Unknown Prop Warning

heldtogether opened this issue · comments

First, great repo. Works really well and so easy to get started. Thanks!

I've tried to use IfFirebaseUnAuthed and react throws a number of warnings about unknown props. Specifically about providerId and isSignedIn. I'm not familiar enough with the library to understand what's happening and submit a fix but hoping it can be resolved fairly easily.

See the console output of https://codesandbox.io/s/firebase-auth-example-jf4n9 for a minimal demo, forked from the demo provided.

Will update with more info, if and when I have it.

Ok, so while digging into this issue, I realised I was using the IfFirebaseUnAuthed component incorrectly. Reading the example at https://github.com/rakannimer/react-firebase/blob/master/modules/react-firebase-docs/docs/guides/build-a-react-app-with-firebase-auth-and-realtime-database/add-google-and-anonymous-auth.md helped clarify the correct usage.

Closing.