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/framework/angular/guides/caching.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Let's assume we are using the default `gcTime` of **5 minutes** and the default
23
23
- A second instance of`injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` initializes elsewhere.
24
24
- Since the cache already has data for the`['todos']` key from the first query, that data is immediately returned from the cache.
25
25
- The new instance triggers a new network request using its query function.
26
-
- Note that regardless of whether both`fetchTodos` query functions are identical or not, both queries'[`status`](../../reference/functions/injectquery.md) are updated (including`isFetching`,`isPending`, and other related values) because they have the same query key.
26
+
- Note that regardless of whether both`fetchTodos` query functions are identical or not, both queries'[`status`](../../reference/functions/injectQuery.md) are updated (including`isFetching`,`isPending`, and other related values) because they have the same query key.
27
27
- When the request completes successfully, the cache's data under the`['todos']` key is updated with the new data, and both instances are updated with the new data.
28
28
- Both instances of the`injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` query are destroyed and no longer in use.
29
29
- Since there are no more active instances of this query, a garbage collection timeout is set using`gcTime` to delete and garbage collect the query (defaults to**5 minutes**).
@@ -32,4 +32,4 @@ Let's assume we are using the default `gcTime` of **5 minutes** and the default
32
32
- No more instances of`injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodos })` appear within**5 minutes**.
33
33
- The cached data under the`['todos']` key is deleted and garbage collected.
34
34
35
-
For more advanced use-cases, see[injectQuery](../../reference/functions/injectquery.md).
35
+
For more advanced use-cases, see[injectQuery](../../reference/functions/injectQuery.md).
Copy file name to clipboardExpand all lines: docs/framework/angular/overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,4 +109,4 @@ interface Response {
109
109
110
110
##You talked me into it, so what now?
111
111
112
-
- Learn TanStack Query at your own pace with our amazingly thorough[Walkthrough Guide](../installation.md) and[API Reference](../reference/functions/injectquery.md)
112
+
- Learn TanStack Query at your own pace with our amazingly thorough[Walkthrough Guide](../installation.md) and[API Reference](../reference/functions/injectQuery.md)
Copy file name to clipboardExpand all lines: docs/framework/angular/reference/functions/infiniteQueryOptions.md
+54-44Lines changed: 54 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@ id: infiniteQueryOptions
3
3
title:infiniteQueryOptions
4
4
---
5
5
6
-
<!-- DO NOT EDIT: this page is autogenerated from the type comments-->
7
-
8
6
#Function: infiniteQueryOptions()
9
7
10
8
Allows to share and re-use infinite query options in a type-safe way.
@@ -18,7 +16,7 @@ The infinite query options to tag with the type from `queryFn`.
18
16
##Call Signature
19
17
20
18
```ts
21
-
function infiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>(options):CreateInfiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>&object&object
19
+
function infiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>(options):CreateInfiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>&object&object;
22
20
```
23
21
24
22
Defined in:[infinite-query-options.ts:88](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L88)
@@ -29,40 +27,44 @@ The `queryKey` will be tagged with the type from `queryFn`.
function infiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>(options):OmitKeyof<CreateInfiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>,"queryFn">&object&object;
66
68
```
67
69
68
70
Defined in:[infinite-query-options.ts:119](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L119)
@@ -73,40 +75,44 @@ The `queryKey` will be tagged with the type from `queryFn`.
function infiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>(options):CreateInfiniteQueryOptions<TQueryFnData,TError,TData,TQueryKey,TPageParam>&object&object;
110
116
```
111
117
112
118
Defined in:[infinite-query-options.ts:150](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L150)
@@ -117,32 +123,36 @@ The `queryKey` will be tagged with the type from `queryFn`.