Releases: CSFrequency/react-firebase-hooks
Releases · CSFrequency/react-firebase-hooks
v1.2.0
New Features
- Add
useCollectionData
anduseDocumentData
hooks forreact-firebase-hooks/firestore
to use the underlying snapshot values - Add
useCollectionOnce
,useCollectionDataOnce
,useDocumentOnce
anduseDocumentDataOnce
to load the current value of the data rather than subscribe to updates - Add support for nulled references as hook properties #10 - thanks @neilor
- Add support for
keyField
touseListVals
anduseObjectVal
Bug fixes
- Flow type fixes - thanks @tornewuff
v1.1.0
v1.0.0
Updates
peerDependencies
updated to Reactv16.8.0
- Updated documentation
v0.5.0
v0.4.0
New Features
- Add
useListKeys
hook forreact-firebase-hooks/database
to use the underlying snapshot keys, rather than theDataSnapshot
objects - Add
useListVal
hook forreact-firebase-hooks/database
to use the underlying snapshot values, rather than theDataSnapshot
object
v0.3.2
v0.3.1
New Features
- Add
useObjectVal
hook forreact-firebase-hooks/database
to use the underlying value, rather than aDataSnapshot
object
v0.3.0
New Features
- Updated API to make it closer to RxFire
- Split the library into sub-packages:
react-firebase-hooks/auth
,react-firebase-hooks/database
,react-firebase-hooks/firestore
andreact-firebase-hooks/storage
- Added support for multiple Firebase apps and theoretical support for React Native
- The library is now written in TypeScript and includes TypeScript typings
- Added Flow typings
Upgrade instructions
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:
- Hooks need to be imported from the appropriate sub-package:
react-firebase-hooks/auth
,react-firebase-hooks/database
,react-firebase-hooks/firestore
andreact-firebase-hooks/storage
useCurrentUser
is nowuseAuthState
useDatabaseList
is nowuseList
and returns avalue
prop rather thanlist
to keep it consistent with other hooksuseDatabaseValue
is nowuseValue
useFirestoreCollection
is nowuseCollection
useFirestoreDocument
is nowuseDocument
useDownloadURL
now returns avalue
prop rather thanurl
to keep it consistent with other hooks