- Notifications
You must be signed in to change notification settings - Fork72
TanStack Query hooks for managing asynchronous operations with Firebase.
License
invertase/tanstack-query-firebase
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A set ofTanStack Query hooks integrating withFirebase.
Installation • Documentation •License
TanStack Query Firebase provides a set of hooks for handling asynchronous tasks with Firebase in your applications.
Looking for React Query Firebase? Check out theold branch.
When managing Firebase’s asynchronous API calls within your application, state synchronization can become cumbersome in most applications. You will commonly find yourself handling loading states, error states, and data synchronization manually.
This library provides a hands-off approach to these problems, by leveraging the popularTanStack Query project. Out of the box, you get:
- Automatic Caching: Avoid redundant Firebase calls with built-in caching.
- Out-of-the-box Synchronization: TanStack Query keeps your UI in sync with the Firebase backend effortlessly.
- Background Updates: Fetch and sync data seamlessly in the background without interrupting the user experience.
- Error Handling & Retries: Get automatic retries on failed Firebase calls, with robust error handling baked in.
- Dev Tools for Debugging: Leverage the React Query Devtools to gain insights into your data-fetching logic and Firebase interactions.
By combining Firebase with TanStack Query, you can make your app more resilient, performant, and scalable, all while writing less code.
This project expects you havefirebase installed as a peer dependency. If you haven't done so already, installfirebase:
npm i --save firebase
Next, install specific packages for your framework of choice:
npm i --save @tanstack/react-query @tanstack-query-firebase/reactSee theDocumentation for more information on how to use the library.
The status of the following Firebase services and frameworks are as follows:
- ✅ Ready for use
- 🟠 Work in progress
- () Not yet started
| Module | React | Vue | Solid | Angular | Svelte |
|---|---|---|---|---|---|
| analytics | |||||
| app-check | |||||
| auth | 🟠 | ||||
| database | |||||
| data-connect | ✅ | ✅ | |||
| firestore | 🟠 | ||||
| firestore/lite | |||||
| functions | |||||
| installations | |||||
| messaging | |||||
| performance | |||||
| remote-config | |||||
| ai |
- SeeLICENSE
Built and maintained byInvertase.
About
TanStack Query hooks for managing asynchronous operations with Firebase.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.