You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,17 @@
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)!
Copy file name to clipboardExpand all lines: docs/comparison.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ and stale data with zero configuration. It also provides tools such as DevTools,
12
12
13
13
Alongside this, React Query Firebase is unopinionated when it comes to integrating with both Firebase and React Query. You can use the library alongside
14
14
your existing Firebase or React Query code with zero conflict. You provide the [Query Keys](https://react-query.tanstack.com/guides/query-keys) and a
15
-
Firebase instance and the library does the rest. Each hook allows you to also provide React Query hook options, which opens the door to making integration
15
+
Firebase instance and the library does the rest. Each hook allows you to also provide React Query hook options, which opens the door to making integration
16
16
with the rest of your application super powerful.
17
17
18
18
Since we've also got access to the awesome [`useMutation`](https://react-query.tanstack.com/reference/useMutation) hook, it means the library provides super useful
@@ -44,5 +44,5 @@ return (
44
44
);
45
45
```
46
46
47
-
In this simple example, we've got success and error callback handlers alongside reactive updates within our application, with zero custom local
47
+
In this simple example, we've got success and error callback handlers alongside reactive updates within our application, with zero custom local
48
48
state management. By integrating with React Query, it allows us to build complex logic flows with minimal effort.
0 commit comments