React Query Firebase provides a set of easy to use hooks for common Firebase usecases. Each hook wraps around React Query, allowing to easily integrate the hooks into a new or existing project, whilst enjoying the powerful benefits React Query offers.
The exported hooks do not manage Query Keys or Firebase instances, giving you full control over integration.
If you haven’t done so already, install
npm i --save react react-query firebase
Before using this library, ensure React Query is setup on your project by following the Installation guide.
Next install one of the React Query Firebase packages, e.g:
npm i --save @react-query-firebase/firestore
See below for a full list of available packages.