npm react-firebase-hooks 3.0.1

latest releases: 5.1.1, 5.1.0, 5.1.0-alpha.9...
4 years ago

Release Notes

Breaking Changes

  • Due to changes in the underlying Firebase types, v3 of react-firebase-hooks requires Firebase v8 or higher (#86) - thanks to @mdirolf

New Features

  • [auth] Add useCreateUserWithEmailAndPassword and useSignInWithEmailAndPassword hooks (#98) - thanks to @lorstenoplo
  • [database] Add transform option for realtime database hooks (#95) - thanks to @Satyam
  • [firestore] Add an optional refField that is populated with the firebase.firestore.QuerySnapshot.ref property (#80) - thanks to @mauriceackel
  • [firestore] Add support for snapshotOptions (#78)
  • [firestore] Add transform option for firestore hooks

Performance Improvements

  • Responses from all hooks are now memoized to prevent unnecessary renders (#79) - thanks to @sdemjanenko
  • [database] Improve useList efficiency (#90) - thanks to @caleb-harrelson

Typing Improvements

  • [auth] Fix return type for useAuthState (#107) - thanks to @kqito
  • [database] Add keyField and refField to generics
  • [firestore] Add generics to allow the returned data to be typed (#75) - thanks to @Lynges
  • [firestore] Add idField and refField to generics (#50)
  • [firestore] Add additional firestore.DocumentReference type information to all hooks (#67)

Don't miss a new react-firebase-hooks release

NewReleases is sending notifications on new releases.