React Hooks for Firebase.
APACHE-2.0 License
Bot releases are visible (Hide)
useCollectionData
and useDocumentData
hooks for react-firebase-hooks/firestore
to use the underlying snapshot valuesuseCollectionOnce
, useCollectionDataOnce
, useDocumentOnce
and useDocumentDataOnce
to load the current value of the data rather than subscribe to updateskeyField
to useListVals
and useObjectVal
useListKeys
hook for react-firebase-hooks/database
to use the underlying snapshot keys, rather than the DataSnapshot
objectsuseListVal
hook for react-firebase-hooks/database
to use the underlying snapshot values, rather than the DataSnapshot
objectreact-firebase-hooks/auth
, react-firebase-hooks/database
, react-firebase-hooks/firestore
and react-firebase-hooks/storage
If you're already tried out an earlier version of React Firebase Hooks, then a very big thank you!
Unfortunately, this version does introduce some breaking changes:
react-firebase-hooks/auth
, react-firebase-hooks/database
, react-firebase-hooks/firestore
and react-firebase-hooks/storage
useCurrentUser
is now useAuthState
useDatabaseList
is now useList
and returns a value
prop rather than list
to keep it consistent with other hooksuseDatabaseValue
is now useValue
useFirestoreCollection
is now useCollection
useFirestoreDocument
is now useDocument
useDownloadURL
now returns a value
prop rather than url
to keep it consistent with other hooks