Download Latest Version v5.1.1 source code.zip (343.8 kB)
Email in envelope

Get an email when there's a new version of React Firebase Hooks

Home / v5.1.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2022-11-09 1.7 kB
v5.1.0 source code.tar.gz 2022-11-09 320.1 kB
v5.1.0 source code.zip 2022-11-09 343.8 kB
Totals: 3 Items   665.5 kB 0

Release Notes

It's been a while since the last release, so this has been a bit of a housekeeping release focused on landing outstanding PRs and resolving a few of the simpler issues that have been reported.

I'm aware there are some outstanding issues with React 18 that require some deeper investigation and these will be tackled in a future release.

Special thanks to @levino for putting a test framework in place and adding our first test. We would welcome PRs with additional tests to improve the resilience of the library!

New Hooks

  • [auth] Add useSendPasswordResetEmail - thanks to @mparsakia
  • [auth] Add useDeleteUser - thanks to @RobertSasak
  • [auth] Add useSignOut - thanks to @RobertSasak
  • [auth] Add useVerifyBeforeUpdateEmail - thanks to @skratchdot
  • [auth] Add useIdToken [#223]
  • [auth] Add useSendSignInLinkToEmail and useSignInWithEmailLink [#261]

New Features

  • [auth] useCollection and useDocument now supports an optional initialValue option which sets the default value for hooks. This had been missed in the upgrade from v3 to v4 - thanks to @mauriceackel and @dylanwatsonsoftware
  • [auth] All methods returned by the createUser and signInWithXXX hooks will return the UserCredential when successful [#251]
  • [auth] All methods returned by updateXXX and sendXXX hooks will return a boolean to indicate success or failure

Bug fixes

  • Ensure that all internal functions are wrapped in useCallback to prevent unnecessary renders - thanks to @wong2 and @pzmudzinski

Full Changelog: https://github.com/CSFrequency/react-firebase-hooks/compare/v5.0.3...v5.1.0

Source: README.md, updated 2022-11-09