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: docs/reference/QueryClient.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Its available methods are:
63
63
-`defaultOptions?: DefaultOptions`
64
64
- Optional
65
65
- Define defaults for all queries and mutations using this queryClient.
66
-
- You can also define defaults to be used for [hydration](../../framework/react/reference/hydration)
66
+
- You can also define defaults to be used for [hydration](../framework/react/reference/hydration)
67
67
68
68
## `queryClient.fetchQuery`
69
69
@@ -95,7 +95,7 @@ try {
95
95
96
96
**Options**
97
97
98
-
The options for `fetchQuery` are exactly the same as those of [`useQuery`](../../framework/react/reference/useQuery), except the following: `enabled, refetchInterval, refetchIntervalInBackground, refetchOnWindowFocus, refetchOnReconnect, refetchOnMount, notifyOnChangeProps, throwOnError, select, suspense, placeholderData`; which are strictly for useQuery and useInfiniteQuery. You can check the [source code](https://github.com/TanStack/query/blob/7cd2d192e6da3df0b08e334ea1cf04cd70478827/packages/query-core/src/types.ts#L119) for more clarity.
98
+
The options for `fetchQuery` are exactly the same as those of [`useQuery`](../framework/react/reference/useQuery), except the following: `enabled, refetchInterval, refetchIntervalInBackground, refetchOnWindowFocus, refetchOnReconnect, refetchOnMount, notifyOnChangeProps, throwOnError, select, suspense, placeholderData`; which are strictly for useQuery and useInfiniteQuery. You can check the [source code](https://github.com/TanStack/query/blob/7cd2d192e6da3df0b08e334ea1cf04cd70478827/packages/query-core/src/types.ts#L119) for more clarity.
99
99
100
100
**Returns**
101
101
@@ -172,7 +172,7 @@ const data = queryClient.getQueryData(queryKey)
- When set to `active`, only queries that match the refetch predicate and are actively being rendered via `useQuery` and friends will be refetched in the background.
- When set to `true`, this method will throw if any of the query refetch tasks fail.
@@ -464,11 +464,11 @@ if (queryClient.isFetching()) {
464
464
}
465
465
```
466
466
467
-
TanStack Query also exports a handy [`useIsFetching`](../../framework/react/reference/useIsFetching) hook that will let you subscribe to this state in your components without creating a manual subscription to the query cache.
467
+
TanStack Query also exports a handy [`useIsFetching`](../framework/react/reference/useIsFetching) hook that will let you subscribe to this state in your components without creating a manual subscription to the query cache.
@@ -484,11 +484,11 @@ if (queryClient.isMutating()) {
484
484
}
485
485
```
486
486
487
-
TanStack Query also exports a handy [`useIsMutating`](../../framework/react/reference/useIsMutating) hook that will let you subscribe to this state in your components without creating a manual subscription to the mutation cache.
487
+
TanStack Query also exports a handy [`useIsMutating`](../framework/react/reference/useIsMutating) hook that will let you subscribe to this state in your components without creating a manual subscription to the mutation cache.
0 commit comments