|
10 | 10 | <br /> |
11 | 11 |
|
12 | 12 | React Query Firebase provides a set of easy to use hooks for handling asynchronous tasks with Firebase in your React application. |
| 13 | + |
13 | 14 | ## Why should I use React Query Firebase? |
14 | 15 |
|
15 | 16 | - **Backed by React Query** - Unlike other solutions, hooks are built on top of [React Query](https://react-query.tanstack.com) which takes care of complex challenges |
16 | | -such as caching, automatic refetching, realtime data subscriptions, pagination & infinite queries, mutations, SSR Support, data selectors, side effect handlers and more. You also get [DevTool](https://react-query.tanstack.com/devtools) |
17 | | -support out of the box! |
| 17 | + such as caching, automatic refetching, realtime data subscriptions, pagination & infinite queries, mutations, SSR Support, data selectors, side effect handlers and more. You also get [DevTool](https://react-query.tanstack.com/devtools) |
| 18 | + support out of the box! |
18 | 19 | - **Un-opinionated** - You provide the Query Keys, Configuration & Firebase instances, allowing for full control over how your data is integrated and cached. You can also roll it alongside any existing Firebase usage. |
19 | | -- **Performant & Efficient** - Whether your queries are one-off or realtime, the library is designed to be performant and efficient. Data fetching is handled via [Queries](https://react-query.tanstack.com/guides/queries) and |
20 | | -[Query Keys](https://react-query.tanstack.com/guides/query-keys), meaning components can share data throughout your application without needless database reads. |
21 | | -- **Mutations** - Sign a user in, delete a document, run a transaction, log an event... React Query Firebase takes care of that for you via [Mutations](https://react-query.tanstack.com/guides/mutations), allowing you to focus |
22 | | -on your application and not managing complex local loading & error states. |
| 20 | +- **Performant & Efficient** - Whether your queries are one-off or realtime, the library is designed to be performant and efficient. Data fetching is handled via [Queries](https://react-query.tanstack.com/guides/queries) and |
| 21 | + [Query Keys](https://react-query.tanstack.com/guides/query-keys), meaning components can share data throughout your application without needless database reads. |
| 22 | +- **Mutations** - Sign a user in, delete a document, run a transaction, log an event... React Query Firebase takes care of that for you via [Mutations](https://react-query.tanstack.com/guides/mutations), allowing you to focus |
| 23 | + on your application and not managing complex local loading & error states. |
23 | 24 | - **Fully Typed** - The library is built with and has full compatibility with TypeScript. |
24 | 25 |
|
25 | 26 | > **Note**: The library supports the Firebase JS SDK v9 - [learn more about it here](https://firebase.googleblog.com/2021/08/the-new-firebase-js-sdk-now-ga.html)! |
|
0 commit comments