-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
feat(angular-query): move devtools to conditional sub-paths #9270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 24 commits
cd70269
fbc3eb0
1088d15
f8334ca
59ad3d8
09986a2
e9055fb
5523975
635774e
c2600eb
d6f6fa3
7eb9e72
891f8d6
6b72a82
4fa4b2a
4637f21
a05c217
63df240
4f148eb
9df1e24
f29d11e
4fbe3d2
34323da
727d5df
d6d621e
a32e4c0
55b220d
c18e6c2
b748f14
73c8099
51c4dce
7f8a863
6a46c1e
bc62387
8813efb
1f2db27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,8 @@ id: infiniteQueryOptions | |
| title: infiniteQueryOptions | ||
| --- | ||
|
|
||
| <!-- DO NOT EDIT: this page is autogenerated from the type comments --> | ||
|
|
||
| # Function: infiniteQueryOptions() | ||
|
|
||
| Allows to share and re-use infinite query options in a type-safe way. | ||
|
|
@@ -24,16 +26,19 @@ function infiniteQueryOptions< | |
| TPageParam, | ||
| >( | ||
| options, | ||
| ): DefinedInitialDataInfiniteOptions< | ||
| ): CreateInfiniteQueryOptions< | ||
| TQueryFnData, | ||
| TError, | ||
| TData, | ||
| TQueryKey, | ||
| TPageParam | ||
| > & | ||
| object & | ||
| object | ||
| ``` | ||
|
|
||
| Defined in: [infinite-query-options.ts:88](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L88) | ||
|
|
||
| Allows to share and re-use infinite query options in a type-safe way. | ||
|
|
||
| The `queryKey` will be tagged with the type from `queryFn`. | ||
|
|
@@ -60,7 +65,7 @@ The infinite query options to tag with the type from `queryFn`. | |
|
|
||
| ### Returns | ||
|
|
||
| [`DefinedInitialDataInfiniteOptions`](../../type-aliases/definedinitialdatainfiniteoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> & `object` | ||
| [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> & `object` & `object` | ||
|
|
||
|
Comment on lines
+68
to
69
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainValidate doc kind path for CreateInfiniteQueryOptions The link path uses “interfaces/createinfinitequeryoptions.md”. If CreateInfiniteQueryOptions is a type alias (not an interface), the path should be under type-aliases to avoid 404s/inconsistency. Please confirm the generator’s kind mapping. You can scan for the emitted file to confirm: Also applies to: 131-133, 191-193 🏁 Script executed: #!/bin/bash
# Verify whether CreateInfiniteQueryOptions is documented under interfaces or type-aliases
fd -a createinfinitequeryoptions.md docs | sed 's|^\./||'
rg -n "createinfinitequeryoptions" -g "docs/**/*.md" -nLength of output: 2240 Update Angular docs CreateInfiniteQueryOptions path to type-aliases 🤖 Prompt for AI Agents |
||
| The tagged infinite query options. | ||
|
|
||
|
|
@@ -70,10 +75,6 @@ The tagged infinite query options. | |
|
|
||
| The infinite query options to tag with the type from `queryFn`. | ||
|
|
||
| ### Defined in | ||
|
|
||
| [infinite-query-options.ts:94](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L94) | ||
|
|
||
| ## Call Signature | ||
|
|
||
| ```ts | ||
|
|
@@ -85,16 +86,22 @@ function infiniteQueryOptions< | |
| TPageParam, | ||
| >( | ||
| options, | ||
| ): UnusedSkipTokenInfiniteOptions< | ||
| TQueryFnData, | ||
| TError, | ||
| TData, | ||
| TQueryKey, | ||
| TPageParam | ||
| ): OmitKeyof< | ||
| CreateInfiniteQueryOptions< | ||
| TQueryFnData, | ||
| TError, | ||
| TData, | ||
| TQueryKey, | ||
| TPageParam | ||
| >, | ||
| 'queryFn' | ||
| > & | ||
| object & | ||
| object | ||
| ``` | ||
|
|
||
| Defined in: [infinite-query-options.ts:119](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L119) | ||
|
|
||
| Allows to share and re-use infinite query options in a type-safe way. | ||
|
|
||
| The `queryKey` will be tagged with the type from `queryFn`. | ||
|
|
@@ -121,7 +128,7 @@ The infinite query options to tag with the type from `queryFn`. | |
|
|
||
| ### Returns | ||
|
|
||
| [`UnusedSkipTokenInfiniteOptions`](../../type-aliases/unusedskiptokeninfiniteoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> & `object` | ||
| `OmitKeyof`\<[`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\>, `"queryFn"`\> & `object` & `object` | ||
|
|
||
| The tagged infinite query options. | ||
|
|
||
|
|
@@ -131,10 +138,6 @@ The tagged infinite query options. | |
|
|
||
| The infinite query options to tag with the type from `queryFn`. | ||
|
|
||
| ### Defined in | ||
|
|
||
| [infinite-query-options.ts:126](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L126) | ||
|
|
||
| ## Call Signature | ||
|
|
||
| ```ts | ||
|
|
@@ -146,16 +149,19 @@ function infiniteQueryOptions< | |
| TPageParam, | ||
| >( | ||
| options, | ||
| ): UndefinedInitialDataInfiniteOptions< | ||
| ): CreateInfiniteQueryOptions< | ||
| TQueryFnData, | ||
| TError, | ||
| TData, | ||
| TQueryKey, | ||
| TPageParam | ||
| > & | ||
| object & | ||
| object | ||
| ``` | ||
|
|
||
| Defined in: [infinite-query-options.ts:150](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L150) | ||
|
|
||
| Allows to share and re-use infinite query options in a type-safe way. | ||
|
|
||
| The `queryKey` will be tagged with the type from `queryFn`. | ||
|
|
@@ -182,7 +188,7 @@ The infinite query options to tag with the type from `queryFn`. | |
|
|
||
| ### Returns | ||
|
|
||
| [`UndefinedInitialDataInfiniteOptions`](../../type-aliases/undefinedinitialdatainfiniteoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> & `object` | ||
| [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> & `object` & `object` | ||
|
|
||
| The tagged infinite query options. | ||
|
|
||
|
|
@@ -191,7 +197,3 @@ The tagged infinite query options. | |
| ### Param | ||
|
|
||
| The infinite query options to tag with the type from `queryFn`. | ||
|
|
||
| ### Defined in | ||
|
|
||
| [infinite-query-options.ts:158](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L158) | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,8 @@ id: injectInfiniteQuery | |||||
| title: injectInfiniteQuery | ||||||
| --- | ||||||
|
|
||||||
| <!-- DO NOT EDIT: this page is autogenerated from the type comments --> | ||||||
|
|
||||||
| # Function: injectInfiniteQuery() | ||||||
|
|
||||||
| Injects an infinite query: a declarative dependency on an asynchronous source of data that is tied to a unique key. | ||||||
|
|
@@ -31,6 +33,8 @@ function injectInfiniteQuery< | |||||
| ): DefinedCreateInfiniteQueryResult<TData, TError> | ||||||
| ``` | ||||||
|
|
||||||
| Defined in: [inject-infinite-query.ts:41](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L41) | ||||||
|
|
||||||
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| Injects an infinite query: a declarative dependency on an asynchronous source of data that is tied to a unique key. | ||||||
| Infinite queries can additively "load more" data onto an existing set of data or "infinite scroll" | ||||||
|
|
||||||
|
|
@@ -76,10 +80,6 @@ A function that returns infinite query options. | |||||
|
|
||||||
| Additional configuration. | ||||||
|
|
||||||
| ### Defined in | ||||||
|
|
||||||
| [inject-infinite-query.ts:42](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L42) | ||||||
|
|
||||||
| ## Call Signature | ||||||
|
|
||||||
| ```ts | ||||||
|
|
@@ -92,6 +92,8 @@ function injectInfiniteQuery< | |||||
| >(injectInfiniteQueryFn, options?): CreateInfiniteQueryResult<TData, TError> | ||||||
| ``` | ||||||
|
|
||||||
| Defined in: [inject-infinite-query.ts:65](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L65) | ||||||
|
|
||||||
| Injects an infinite query: a declarative dependency on an asynchronous source of data that is tied to a unique key. | ||||||
| Infinite queries can additively "load more" data onto an existing set of data or "infinite scroll" | ||||||
|
|
||||||
|
|
@@ -137,10 +139,6 @@ A function that returns infinite query options. | |||||
|
|
||||||
| Additional configuration. | ||||||
|
|
||||||
| ### Defined in | ||||||
|
|
||||||
| [inject-infinite-query.ts:67](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L67) | ||||||
|
|
||||||
| ## Call Signature | ||||||
|
|
||||||
| ```ts | ||||||
|
|
@@ -153,6 +151,8 @@ function injectInfiniteQuery< | |||||
| >(injectInfiniteQueryFn, options?): CreateInfiniteQueryResult<TData, TError> | ||||||
| ``` | ||||||
|
|
||||||
| Defined in: [inject-infinite-query.ts:89](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L89) | ||||||
|
|
||||||
| Injects an infinite query: a declarative dependency on an asynchronous source of data that is tied to a unique key. | ||||||
| Infinite queries can additively "load more" data onto an existing set of data or "infinite scroll" | ||||||
|
|
||||||
|
|
@@ -172,7 +172,7 @@ Infinite queries can additively "load more" data onto an existing set of data or | |||||
|
|
||||||
| #### injectInfiniteQueryFn | ||||||
|
|
||||||
| () => [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryFnData`, `TQueryKey`, `TPageParam`\> | ||||||
| () => [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> | ||||||
|
|
||||||
|
Comment on lines
+175
to
176
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainValidate doc kind path for CreateInfiniteQueryOptions Link targets “interfaces/createinfinitequeryoptions.md”. Confirm actual location/kind to avoid 404s. 🏁 Script executed: #!/bin/bash
fd -a createinfinitequeryoptions.md docs | sed 's|^\./||'
rg -n "CreateInfiniteQueryOptions" -g "docs/**/*.md" -nLength of output: 4118 Fix broken relative link for CreateInfiniteQueryOptions - [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)
+ [`CreateInfiniteQueryOptions`](../interfaces/createinfinitequeryoptions.md)📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| A function that returns infinite query options. | ||||||
|
|
||||||
|
|
@@ -197,7 +197,3 @@ A function that returns infinite query options. | |||||
| ### Param | ||||||
|
|
||||||
| Additional configuration. | ||||||
|
|
||||||
| ### Defined in | ||||||
|
|
||||||
| [inject-infinite-query.ts:92](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L92) | ||||||
Uh oh!
There was an error while loading. Please reload this page.