feat(angular-query): move devtools to conditional sub-paths #9270
main fromrefs/pull/9270/head·merged by arnoud-dv(GitHub profile, opens in a new tab) View on GitHubBreaking changes#
Import paths#
withDevtools moved to subpath#
Most applications, to completely tree shake devtools from production builds
import { withDevtools } from '@tanstack/angular-query-experimental/devtools'
If you want to also use devtools in production builds
import { withDevtools } from '@tanstack/angular-query-experimental/devtools/production'
injectDevtoolsPanel moved to main package#
Most applications, to completely tree shake devtools panel from production builds
import { injectDevtoolsPanel } from '@tanstack/angular-query-experimental/devtools-panel'
If you want to also use devtools panel in production builds
import { injectDevtoolsPanel } from '@tanstack/angular-query-experimental/devtools-panel/production'
angular-query-devtools-experimental package#
After moving injectDevtoolsPanel to the main package, the angular devtools package is obsolete.
Improvements and fixes#
Subpath exports#
Experience with subpath exports paves the way to add functionality such as RxJs integration without needing to have the whole Angular TanStack Query package depend on RxJs.
Isolating devtools to a subpath reliably fixes #9078, where esbuild was generating chunks even when devtools were not used at all. While these chunks were not adding to the main bundle size it unnecessarily increased build time and deployment size.
Conditional exports#
The devtools subpath exports further utilize conditional exports. For development builds, the function is exported normally. For production builds a tiny stub function is exported, resulting in excellent tree shaking without having to configure environments.
Dependency injection in the devtools callback#
Fixes #8824 After no longer running the options computation function in the injection context it was no longer possible to use dependency injection to inject values. The withDevtools function now has a deps option to automatically inject dependencies and pass it as a parameter to the computation function. This solves this issue while not injecting a value each time the computation function is run which would be the case if the function would run in the injection context. This is similar to and internally uses deps on Angular's useFactory.
withDevtools(
(devToolsOptionsManager: DevtoolsOptionsManager) => ({
loadDevtools: devToolsOptionsManager.loadDevtools(),
}),
{
// `deps` is used to inject and pass `DevtoolsOptionsManager` to the `withDevtools` callback.
deps: [DevtoolsOptionsManager],
},
)
Adds a check if devtools were already provided#
Fixes #8705
Summary by CodeRabbit#
New Features
- Devtools & Devtools Panel: production-aware, DI-friendly integrations with lazy/on-demand loading, production stubs, and a new hideDisabledQueries option; withDevtools supports DI-enabled factory callbacks.
Documentation
- Large docs refresh with autogenerated notices, updated devtools guidance/examples, inline source pointers, and cleanup of obsolete entries.
Examples
- Angular examples updated to import devtools from the new devtools module paths.
Chores / Breaking Changes
- Devtools made optional; legacy devtools package removed; public exports and import paths relocated; several public type signatures/overloads adjusted.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsdocumentation
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: angular-query-experimental
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: angular-query-devtools-experimental
Codecov Report#
:x: Patch coverage is
92.30769%with8 linesin your changes missing coverage. Please review. :white_check_mark: Project coverage is 45.75%. Comparing base (ca56514) to head (1f2db27). :warning: Report is 2 commits behind head on main.Additional details and impacted files
@@ Coverage Diff @@ ## main #9270 +/- ## ========================================== + Coverage 45.51% 45.75% +0.23% ========================================== Files 209 213 +4 Lines 8379 8427 +48 Branches 1895 1913 +18 ========================================== + Hits 3814 3856 +42 - Misses 4118 4124 +6 Partials 447 447- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
More templates
- @tanstack/query-example-angular-auto-refetching
- @tanstack/query-example-angular-basic
- @tanstack/query-example-angular-basic-persister
- @tanstack/query-example-angular-devtools-panel
- @tanstack/query-example-angular-infinite-query-with-max-pages
- @tanstack/query-example-angular-optimistic-updates
- @tanstack/query-example-angular-pagination
- @tanstack/query-example-angular-query-options-from-a-service
- @tanstack/query-example-angular-router
- @tanstack/query-example-angular-rxjs
- @tanstack/query-example-angular-simple
- @tanstack/query-example-react-algolia
- @tanstack/query-example-react-auto-refetching
- @tanstack/query-example-react-basic
- @tanstack/query-example-react-basic-graphql-request
- @tanstack/query-example-chat
- @tanstack/query-example-react-default-query-function
- @tanstack/query-example-react-devtools-panel
- @tanstack/query-example-eslint-legacy
- @tanstack/query-example-react-infinite-query-with-max-pages
- @tanstack/query-example-react-load-more-infinite-scroll
- @tanstack/query-example-react-nextjs
- @tanstack/query-example-react-nextjs-app-prefetching
- @tanstack/query-example-nextjs-suspense-streaming
- @tanstack/query-example-react-offline
- @tanstack/query-example-react-optimistic-updates-cache
- @tanstack/query-example-react-optimistic-updates-ui
- @tanstack/query-example-react-pagination
- @tanstack/query-example-react-playground
- @tanstack/query-example-react-prefetching
- @tanstack/query-example-react-react-native
- @tanstack/query-example-react-router
- @tanstack/query-example-react-rick-morty
- @tanstack/query-example-react-shadow-dom
- @tanstack/query-example-react-simple
- @tanstack/query-example-react-star-wars
- @tanstack/query-example-react-suspense
- @tanstack/query-example-solid-astro
- @tanstack/query-example-solid-basic
- @tanstack/query-example-solid-basic-graphql-request
- @tanstack/query-example-solid-default-query-function
- @tanstack/query-example-solid-simple
- @tanstack/query-example-solid-start-streaming
- @tanstack/query-example-svelte-auto-refetching
- @tanstack/query-example-svelte-basic
- @tanstack/query-example-svelte-load-more-infinite-scroll
- @tanstack/query-example-svelte-optimistic-updates
- @tanstack/query-example-svelte-playground
- @tanstack/query-example-svelte-simple
- @tanstack/query-example-svelte-ssr
- @tanstack/query-example-svelte-star-wars
- @tanstack/query-example-vue-2.6-basic
- @tanstack/query-example-vue-2.7-basic
- @tanstack/query-example-vue-basic
- @tanstack/query-example-vue-dependent-queries
- @tanstack/query-example-vue-nuxt3
- @tanstack/query-example-vue-persister
- @tanstack/query-example-vue-simple
@tanstack/angular-query-experimental
npm i https://pkg.pr.new/@tanstack/angular-query-experimental@9270@tanstack/eslint-plugin-query
npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@9270@tanstack/query-async-storage-persister
npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@9270@tanstack/query-broadcast-client-experimental
npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@9270@tanstack/query-core
npm i https://pkg.pr.new/@tanstack/query-core@9270@tanstack/query-devtools
npm i https://pkg.pr.new/@tanstack/query-devtools@9270@tanstack/query-persist-client-core
npm i https://pkg.pr.new/@tanstack/query-persist-client-core@9270@tanstack/query-sync-storage-persister
npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@9270@tanstack/react-query
npm i https://pkg.pr.new/@tanstack/react-query@9270@tanstack/react-query-devtools
npm i https://pkg.pr.new/@tanstack/react-query-devtools@9270@tanstack/react-query-next-experimental
npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@9270@tanstack/react-query-persist-client
npm i https://pkg.pr.new/@tanstack/react-query-persist-client@9270@tanstack/solid-query
npm i https://pkg.pr.new/@tanstack/solid-query@9270@tanstack/solid-query-devtools
npm i https://pkg.pr.new/@tanstack/solid-query-devtools@9270@tanstack/solid-query-persist-client
npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@9270@tanstack/svelte-query
npm i https://pkg.pr.new/@tanstack/svelte-query@9270@tanstack/svelte-query-devtools
npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@9270@tanstack/svelte-query-persist-client
npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@9270@tanstack/vue-query
npm i https://pkg.pr.new/@tanstack/vue-query@9270@tanstack/vue-query-devtools
npm i https://pkg.pr.new/@tanstack/vue-query-devtools@9270commit:
1f2db27github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: angular-query-persist-client
Walkthrough#
Modularizes Angular devtools into dedicated
devtoolsanddevtools-panelsubmodules with production stubs and lazy dynamic imports; removes the legacy@tanstack/angular-query-devtools-experimentalpackage and its build/config; updates package exports, examples, tests, and many autogenerated Angular docs and metadata.Changes#
Cohort / File(s) Summary Devtools core & exports packages/angular-query-experimental/src/devtools/*,packages/angular-query-experimental/package.json,packages/angular-query-experimental/src/index.tsAdd new devtoolspublic module (types,withDevtools, production stub/index), optionalize@tanstack/query-devtools, add package exports for devtools/devtools-panel, remove top-level re-exports of devtools, addprovideAngularQuery.Devtools panel API & runtime packages/angular-query-experimental/src/devtools-panel/*Add devtools-paneltypes, runtimeinjectDevtoolsPanelimplementation, production stub and production index, and re-export index.Remove legacy devtools package packages/angular-query-devtools-experimental/*Delete legacy package manifest, source files, configs, tests, and build tooling; remove re-exports and example dependency. Examples updated examples/angular/*/src/app/app.config.ts,examples/angular/devtools-panel/*,examples/angular/devtools-panel/package.jsonUpdate example imports to @tanstack/angular-query-experimental/devtoolsand.../devtools-panel; remove deprecated example dependency.Tests adapted packages/angular-query-experimental/src/__tests__/*Update tests to new import locations, handle async dynamic imports, add lifecycle/platform scenarios, rename Devtools option fields ( loadDeveloperTools→loadDevtools).Docs: devtools guidance & index docs/framework/angular/devtools.md,docs/framework/angular/reference/index.md, (removed)docs/.../functions/withdevtools.mdRewrite devtools docs for DI-enabled withDevtools, add production import path guidance, remove oldwithDevtoolsdoc, update index entries and public API listings.Docs: autogenerated Angular references docs/framework/angular/reference/**Large batch of autogenerated metadata edits: DO NOT EDIT notices, inline “Defined in” links, unified type shapes, generic-arity fixes, literal renames (e.g., DeveloperTools→Devtools), and many page removals/relocations.Examples: devtools-panel components examples/angular/devtools-panel/src/app/components/*Change import paths and dynamic import targets to new @tanstack/angular-query-experimental/devtools-panel.Config & tooling knip.json,package.json,codecov.yml,packages/angular-query-experimental/eslint.config.jsAdd knip workspace entries for production entry points; remove pnpm override and codecov component for legacy devtools; simplify ESLint jsdoc rule. Public API/type adjustments & annotations packages/angular-query-experimental/src/*, manydocs/...Remove numerous @publicJSDoc tags, adjust exported type aliases and generic arities (infinite/inject/mutation-related), and add new devtools types and overloads.Misc: internals & doc snippets packages/angular-query-experimental/src/inject-is-restoring.ts,packages/angular-query-experimental/src/mutation-options.ts, othersInternal token naming/documentation tweaks and JSDoc example reformatting. Sequence Diagram(s)#
sequenceDiagram autonumber actor App as App bootstrap participant DI as Angular DI participant With as withDevtools participant Options as DevtoolsOptionsSignal participant Loader as DynamicImport(@tanstack/query-devtools) participant TD as TanstackQueryDevtools App->>DI: provideTanStackQuery(..., withDevtools(fn,{deps})) DI->>With: register providers & ENVIRONMENT_INITIALIZER With->>Options: derive reactive options (inject deps via DI) DI->>With: run initializer (browser only) alt loadDevtools true OR dev mode With->>Loader: import('@tanstack/query-devtools') (async) Loader-->>With: module With->>TD: new TanstackQueryDevtools(...) and mount to body Options-->>TD: apply updates reactively else skip With-->>DI: no-op (devtools not loaded) end DI->>TD: destroy on injector teardownsequenceDiagram autonumber actor Component as Consumer participant Injector as Injector participant Fn as injectDevtoolsPanel participant Comp as computed options participant Loader as DynamicImport(@tanstack/query-devtools) participant Panel as TanstackQueryDevtoolsPanel Component->>Fn: call factory -> DevtoolsPanelOptions Fn->>Injector: runInInjectionContext (resolve DestroyRef, PLATFORM_ID) alt non-browser Fn-->>Component: return noop destroy else browser Fn->>Comp: compute options (hostElement?, client?, ...) alt hostElement appears & no panel Fn->>Loader: import('@tanstack/query-devtools') (async) Loader-->>Fn: module Fn->>Panel: new Panel(...) and mount(hostElement) else options change Fn->>Panel: update(client/errorTypes/onClose) else hostElement removed Fn->>Panel: destroy() end Injector->>Panel: ensure destroy on teardown Fn-->>Component: return destroy handle endEstimated code review effort#
🎯 4 (Complex) | ⏱️ ~60 minutes
Possibly related PRs#
- TanStack/query#9648 — Doc/example edits touching
mutation-optionsexamples; overlaps documentation changes in this PR. - TanStack/query#8817 — Prior work that changed DI behavior for devtools; conceptually related to DI-aware devtools loading and fixes.
- (No further strongly code-linked PRs found.)
Suggested reviewers#
- TkDodo
"I nibble docs and hop between files, I move the tools where production smiles. If DI whispers yes, they'll wake and play, else tucked away, they save the bundle's day. A rabbit cheers—lazy imports all the way!" 🐇✨
Pre-merge checks and finishing touches#
❌ Failed checks (1 warning)
Check name Status Explanation Resolution Out of Scope Changes Check ⚠️ Warning While the devtools work is well scoped, the PR also contains several public API/type-surface changes that are not documented in the PR objectives and may be breaking, including mutationOptions overloads (mutation-options.ts), a change to CreateMutationResult to include BaseMutationNarrowing (types.ts), broad unification/retyping of query/infinite-query option types (query-options.ts, infinite-query-options.ts and related type-alias changes), and reducing generic arity in injectInfiniteQuery and related aliases; these type/signature changes go beyond the stated devtools/export objectives. Many documentation-only edits are fine, but the surfaced API/type changes should be explicitly justified or split out because they may affect downstream consumers. Request the author to either separate the unrelated public API/type changes into a distinct PR with rationale and migration notes or explicitly document and justify them in this PR (including compatibility tests and changelog entries); block merge until the scope and compatibility impact of those API/type changes are clarified and CI/tests run. ✅ Passed checks (4 passed)
Check name Status Explanation Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled. Title Check ✅ Passed The title "feat(angular-query): move devtools to conditional sub-paths" is concise, follows conventional-commit style, and accurately summarizes the primary change (moving devtools to dedicated conditional sub-paths and related export/packaging work) as reflected across the diff. The title is specific to the main change and readable for teammates scanning history. Linked Issues Check ✅ Passed The changes implement the linked-issue goals: conditional subpath exports, stubs, and making @tanstack/query-devtools optional to avoid emitting devtools chunks in production builds ([#9078]); adding DI-aware devtools options (deps support, DevtoolsOptionsManager and updated withDevtools API) to restore injection inside loadDevtools ([#8824]); and adding provider-scoped guards (DEVTOOLS_PROVIDED) plus lifecycle tests to avoid duplicate registrations and to support lazy-route/provider usage ([#8705]). Test additions and packaging/export edits in packages/angular-query-experimental align with these objectives and include explicit tests for injector lifecycle, platform gating, and dependency injection. Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped. ✨ Finishing touches
- 📝 Generate Docstrings
🧪 Generate unit tests
- Create PR with unit tests
- Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment `@coderabbitai help` to get the list of available commands and usage tips.- TanStack/query#9648 — Doc/example edits touching
Actionable comments posted: 41
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (6)
docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md (1)
24-26: Fix optional property syntax in auto-generated docs In docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md, replace the invalid “optional queryFn:” with a proper TS optional property:- optional queryFn: Exclude<CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken | undefined>; + queryFn?: Exclude<CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'], SkipToken | undefined>;Update the docs generator/template to emit
queryFn?:instead of the “optional” prefix.docs/framework/angular/reference/functions/providetanstackquery.md (1)
54-60: Fix import (missing comma) and update withDevtools subpath per breaking change.- Missing comma after withDevtools breaks copy/paste.
- withDevtools must be imported from the devtools subpath now.
Apply:
-import { - provideTanStackQuery, - withDevtools - QueryClient, -} from '@tanstack/angular-query-experimental' +import { + provideTanStackQuery, + QueryClient, +} from '@tanstack/angular-query-experimental' +import { withDevtools } from '@tanstack/angular-query-experimental/devtools'Optionally document prod-enabled import:
import { withDevtools } from '@tanstack/angular-query-experimental/devtools/production'packages/angular-query-experimental/src/inject-is-restoring.ts (1)
32-36: Annotate the return type to lock the public API.As written, the inferred return type is
unknown(due to the untyped token). Explicitly returnSignal<boolean>to stabilize the emitted types.-export function injectIsRestoring(options?: InjectIsRestoringOptions) { +export function injectIsRestoring(options?: InjectIsRestoringOptions): Signal<boolean> { !options?.injector && assertInInjectionContext(injectIsRestoring) const injector = options?.injector ?? inject(Injector) return injector.get(IS_RESTORING) }docs/framework/angular/devtools.md (1)
147-149: Type should beboolean, notBooleanUse the primitive type in docs to match TS best practices.
-- `initialIsOpen?: Boolean` +- `initialIsOpen?: boolean`examples/angular/devtools-panel/src/app/components/lazy-load-devtools-panel-example.component.ts (1)
48-59: Guard against undefined hostElement when toggling; add minimal error handling. Effect may run beforedivEl()is set, passingundefinedtoinjectDevtoolsPanel.Apply:
readonly loadDevtoolsEffect = effect(() => { - if (this.devtools()) return - if (this.isOpen()) { + if (this.devtools()) return + if (!this.isOpen()) return + const host = this.divEl() + if (!host) return this.devtools.set( - import('@tanstack/angular-query-experimental/devtools-panel').then( - ({ injectDevtoolsPanel }) => - injectDevtoolsPanel(this.devToolsOptions, { - injector: this.injector, - }), - ), + import('@tanstack/angular-query-experimental/devtools-panel') + .then(({ injectDevtoolsPanel }) => + injectDevtoolsPanel(this.devToolsOptions, { injector: this.injector }), + ) + .catch((err) => { + console.error('Failed to load devtools panel', err) + throw err + }), ) - } + } })packages/angular-query-experimental/src/__tests__/inject-devtools-panel.test.ts (1)
52-54: Mocks are not cleared between tests; call counts will leak across specs.vi.restoreAllMocks() won’t reset vi.fn counters, causing toHaveBeenCalledTimes assertions to be order-dependent.
Apply this diff to reset counters reliably:
- afterEach(() => { - vi.restoreAllMocks() - }) + afterEach(() => { + vi.clearAllMocks() + vi.restoreAllMocks() + })♻️ Duplicate comments (3)
docs/framework/angular/reference/interfaces/injectinfinitequeryoptions.md (1)
20-21: Same issue: update second “Defined in” link to TanStack org.Mirror the fix for the other link.
Apply:
-Defined in: [inject-infinite-query.ts:31](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L31) +Defined in: [inject-infinite-query.ts:31](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L31)docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md (1)
18-19: Canonicalize the “Defined in” link (same issue as above).-Defined in: [types.ts:109](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L109) +Defined in: [types.ts:109](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L109)docs/framework/angular/reference/type-aliases/createqueryresult.md (1)
14-15: Update “Defined in” link to TanStack/query (same issue as above).-Defined in: [types.ts:104](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L104) +Defined in: [types.ts:104](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L104)🧹 Nitpick comments (66)
docs/framework/angular/reference/interfaces/basemutationnarrowing.md (5)
10-11: Point “Defined in” to the canonical repo and pin to a commit to avoid link rot.If this page is autogenerated, please adjust the generator. For this instance, switching to TanStack is sufficient:
-Defined in: [types.ts:172](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L172) +Defined in: [types.ts:172](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L172)
48-49: Same canonical link fix for isError.-Defined in: [types.ts:195](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L195) +Defined in: [types.ts:195](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L195)
76-77: Same canonical link fix for isIdle.-Defined in: [types.ts:229](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L229) +Defined in: [types.ts:229](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L229)
104-105: Same canonical link fix for isPending.-Defined in: [types.ts:212](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L212) +Defined in: [types.ts:212](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L212)
132-133: Same canonical link fix for isSuccess.-Defined in: [types.ts:178](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L178) +Defined in: [types.ts:178](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L178)docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md (1)
6-7: Enrich the DO NOT EDIT banner with provenance and regeneration hint.Helps future editors find the true source and the generator.
-<!-- DO NOT EDIT: this page is autogenerated from the type comments --> +<!-- DO NOT EDIT: autogenerated from packages/angular-query-experimental/src/types.ts (type comments) via scripts/generate-angular-docs. Edit the source and re-run docs generation. -->docs/framework/angular/reference/functions/mutationoptions.md (2)
39-41: Verify Angular Signals usage in the example.Angular typically uses
signal(0), notnew Signal(0). Please confirm and adjust to prevent confusing users.
47-53: Align default type parameter docs for TError.Here TError defaults to
Error, while the related interface page showsDefaultError. Please reconcile or explain the difference to avoid confusion.docs/framework/angular/reference/type-aliases/createmutationresult.md (1)
6-7: Autogen notice: add “how to regenerate” pointer. Consider appending a short note or link to the docs build/generation instructions so contributors know where to make source edits and how to re-generate.docs/framework/angular/reference/functions/injectmutationstate.md (2)
35-38: Clarify parameter description foroptionsIt’s not “the Angular injector”; it’s an options object that may contain
injector.-The Angular injector to use. +Options for injection. Set `injector` to override the current injection context used by `inject()`.
11-15: Tighten signature formatting (remove dangling comma)Minor formatting polish in the code block.
function injectMutationState<TResult>( injectMutationStateFn, - options?, + options? ): Signal<TResult[]>docs/framework/angular/guides/query-cancellation.md (1)
63-74: LGTM on the language tag; minor axios example polish for consistency.The switch to ts is correct. Optional: return response.data to mirror the fetch example’s data-centric return.
Replace the example with:
const query = injectQuery(() => ({ queryKey: ['todos'], queryFn: async ({ signal }) => { const { data } = await axios.get('/todos', { signal }) return data }, }))packages/angular-query-experimental/eslint.config.js (1)
23-24: Whitelist API Extractor tags in jsdoc/check-tag-names Detected@public(and similar) tags in several packages; add them viadefinedTagsto avoid bogus warnings:-'jsdoc/check-tag-names': ['warn'], +'jsdoc/check-tag-names': ['warn', { definedTags: ['public','beta','internal','alpha'] }],knip.json (1)
26-30: Include dev (non-production) entry points or explicitly ignore them to avoid false positives. Only listing production subpaths may cause knip to flag dev-only exports as unused. Either add dev entries or mark them ignored.Apply one of the following diffs:
Option A — add dev entries:
"packages/angular-query-experimental": { "entry": [ + "src/devtools/index.ts", "src/devtools/production/index.ts", + "src/devtools-panel/index.ts", "src/devtools-panel/production/index.ts" ] }Option B — ignore dev paths instead:
"packages/angular-query-experimental": { - "entry": [ + "entry": [ "src/devtools/production/index.ts", "src/devtools-panel/production/index.ts" - ] + ], + "ignore": [ + "src/devtools/index.ts", + "src/devtools-panel/index.ts" + ] }docs/framework/angular/reference/type-aliases/createmutatefunction.md (1)
16-17: Stabilize “Defined in” links.Line-based links to main can rot after refactors. Prefer permalinks (commit SHA) or symbol anchors from the docs generator.
docs/framework/angular/reference/functions/providetanstackquery.md (2)
14-15: Use permalinks for “Defined in”.Line numbers on main are brittle. Switch to commit-sha URLs or generator-provided symbol anchors.
80-84: Minor grammar/style tweak.Hyphenate “lazy-loaded”; prefer “that” over “which”; tighten phrasing.
-Using an InjectionToken for the QueryClient is an advanced optimization which allows TanStack Query to be absent from the main application bundle. -This can be beneficial if you want to include TanStack Query on lazy loaded routes only while still sharing a `QueryClient`. - -Note that this is a small optimization and for most applications it's preferable to provide the `QueryClient` in the main application config. +Using an InjectionToken for the QueryClient is an advanced optimization that allows TanStack Query to be absent from the main application bundle. +This can be beneficial if you want to include TanStack Query only on lazy-loaded routes while still sharing a `QueryClient`. + +Note that this is a small optimization, and for most applications it's preferable to provide the `QueryClient` in the main application config.docs/framework/angular/reference/functions/injectisfetching.md (2)
14-15: Prefer permalink for “Defined in”.Avoid line-number drift by linking to a specific commit or a stable anchor.
19-19: Add terminating period.Finish the sentence for consistency with the rest of the page.
-Can be used for app-wide loading indicators +Can be used for app-wide loading indicators.docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md (1)
18-19: Stabilize “Defined in” link.Switch to a commit permalink or generator anchor to prevent link rot.
docs/framework/angular/reference/interfaces/createqueryoptions.md (1)
10-11: Stabilize source link.Use a commit SHA or stable anchor for “Defined in”.
docs/framework/angular/reference/type-aliases/queriesresults.md (2)
38-38: Grammar nit Use “type parameter” and end with a period.-QueriesResults reducer recursively maps type param to results +QueriesResults reducer recursively maps the type parameter to results.
36-37: Pin or stabilize “Defined in” links to avoid drift Verified all current “Defined in” links point to existing files and valid line numbers. Using blob/main with explicit line anchors is brittle post-merge. Prefer GitHub permalinks pinned to a commit SHA or omit the line anchors entirely. Also update URLs to the canonical repository instead of the fork before publishing.docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md (1)
15-16: Stabilize “Defined in” link target Same suggestion as elsewhere: pin to a commit SHA or remove the L anchor to avoid future mismatches; switch to canonical repo before publish.Use the validation script shared in QueriesResults to check this link too.
docs/framework/angular/reference/interfaces/injectqueryoptions.md (1)
10-11: Consolidate and harden “Defined in” links Both references should be pinned (commit permalink) or use anchor-less links; avoid linking to the fork for published docs.Re-run the cross-doc “Defined in” validator to ensure both anchors are within file bounds after any future refactors.
Also applies to: 20-21
docs/framework/angular/reference/functions/injectisrestoring.md (2)
14-15: Harden source link Prefer commit-pinned permalink or omit the line anchor; update to canonical repo before publish.Covered by the shared validator script.
30-30: Tighten returns wording Minor clarity/grammar improvement.-readonly signal with boolean that indicates whether a restore is in progress. +A read-only `Signal<boolean>` indicating whether a restore is in progress.docs/framework/angular/reference/interfaces/injectisfetchingoptions.md (1)
10-11: Stabilize both “Defined in” links Same guidance: pin to commit or drop line anchors; switch to canonical repo for published docs.Use the shared validator to ensure anchors remain within bounds.
Also applies to: 20-21
packages/angular-query-experimental/src/inject-is-restoring.ts (1)
11-12: Doc nit: call out internal token name for debugging.Consider mentioning the concrete token description (e.g.,
tanstack.isRestoring) to make DI errors more actionable.packages/angular-query-experimental/src/devtools-panel/types.ts (1)
24-52: TightenhostElementtyping for better IntelliSense and safety.DevTools mounts into an HTML element; narrowing improves DX without breaking usage.
-export interface DevtoolsPanelOptions { +export interface DevtoolsPanelOptions { @@ - hostElement?: ElementRef + hostElement?: ElementRef<HTMLElement> }If you want to support raw elements too, widen to
ElementRef<HTMLElement> | HTMLElementand adapt the implementation accordingly.packages/angular-query-experimental/src/devtools-panel/stub.ts (1)
4-7: LGTM — minimal, tree-shakeable production stub.No side effects; signature matches the public type. Consider marking as pure, though not necessary:
-export const injectDevtoolsPanel: InjectDevtoolsPanel = () => ({ +/* @__PURE__ */ export const injectDevtoolsPanel: InjectDevtoolsPanel = () => ({ destroy: noop, })packages/angular-query-experimental/package.json (1)
99-101: Optional dep is correct; confirm TS type resolution UX.Moving
@tanstack/query-devtoolstooptionalDependenciesis right. Note: consumers importing only the main package won’t need it, but those importing/devtools(-panel)will need it for types too. Consider a short note in docs.docs/framework/angular/devtools.md (3)
31-39: Tighten production wording to avoid ambiguity about inclusion/exclusionMinor clarity tweak: explicitly tie inclusion to the production sub-path import.
Apply:
-Devtools are automatically excluded from production builds. However, it might be desirable to lazy load the devtools in production. +When imported from the main devtools path, devtools are automatically excluded from production builds. If you want them in production, you can still lazy load them via the production sub-path. -To use `withDevtools` in production builds, import using the `production` sub-path. The function exported from the production subpath is identical to the main one, but won't be excluded from production builds. +To use `withDevtools` in production builds, import from the `production` sub-path. The API is identical, but it won’t be excluded by production builds.
59-65: Polish phrasing for the environments noteSmall grammar/readability improvements.
-This is useful if you want to load devtools based on Angular environment configurations. E.g. you could set this to true when the application is running on your production build staging environment. +This is useful if you want to load devtools based on Angular environment configurations. For example, you could set this to true when the application is running in a staging environment for your production build.
112-116: Fix minor grammar“passed as parameter” → “passed as a parameter”.
-If you want to use an injectable such as a service in the callback you can use `deps`. The injected value will be passed as parameter to the callback function. +If you want to use an injectable such as a service in the callback, you can use `deps`. The injected value will be passed as a parameter to the callback function.docs/framework/angular/reference/functions/queryoptions.md (4)
37-40: Remove duplicated& object & objectfrom return typeLikely a generator artifact; it adds noise and no value.
-): Omit<CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & - object & - object +): Omit<CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'>Please also apply similar cleanup at Lines 98–103 and 160–161.
82-87: Duplicate sentence“The tagged query options.” is repeated twice.
The tagged query options. -The tagged query options.Apply the same dedup at Lines 147–150 and 205–208.
98-103: Return type cleanup (same issue as above)Duplicate
& object & object.-): OmitKeyof< - CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>, - 'queryFn' -> & - object & - object +): OmitKeyof<CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'>Also confirm that
OmitKeyofis defined and linked in the reference.
160-161: Return type cleanup (same issue as above)Remove duplicate
& object & object.-): CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey> & object & object +): CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>examples/angular/query-options-from-a-service/src/app/app.config.ts (1)
8-8: Import updated to new subpath; consistent with the PR’s breaking change.Looks good. If you want to showcase DI-enabled options (new deps support), consider adding a brief example later, but not required for this PR.
examples/angular/auto-refetching/src/app/app.config.ts (1)
10-10: Import path move to devtools subpath looks correct.Matches the new API surface.
If you intend to keep devtools enabled in production for this example, consider switching to '@tanstack/angular-query-experimental/devtools/production' to align with the production variant.
examples/angular/simple/src/app/app.config.ts (1)
6-6: Import path update LGTM.Consistent with the new devtools subpath.
If you want this example’s production build to include only the production-safe variant, import from '@tanstack/angular-query-experimental/devtools/production'.
docs/framework/angular/reference/functions/provideangularquery.md (1)
38-40: Deprecation note is clear; consider adding “since” version.Optional: add “Deprecated since v5.x” to aid consumers scanning changelogs.
packages/angular-query-experimental/src/devtools/stub.ts (1)
1-7: Production stub is minimal and correctly typed; consider a tiny tweak for tree-shaking.Optional: mark the factory as pure to aid some bundlers.
Apply:
-export const withDevtools: WithDevtools = () => ({ +export const withDevtools: WithDevtools = /* @__PURE__ */ () => ({ ɵkind: 'Devtools', ɵproviders: [], })docs/framework/angular/reference/functions/injectquery.md (1)
128-130: Deduplicate repeated lines (“The query result.” and “See”). Likely generator duplication.Apply:
- The query result. + The query result. -### See - -https://tanstack.com/query/latest/docs/framework/angular/guides/queries +### See + +https://tanstack.com/query/latest/docs/framework/angular/guides/queriesAnd later:
- The query result. + The query result. -### See - -https://tanstack.com/query/latest/docs/framework/angular/guides/queries +### See + +https://tanstack.com/query/latest/docs/framework/angular/guides/queriesAlso applies to: 139-146, 219-221, 235-237
packages/angular-query-experimental/src/index.ts (1)
50-61: Confirm intent to keep DeveloperToolsFeature at the root indexGiven devtools moved to subpaths, retaining
DeveloperToolsFeatureon the root may re-surface devtools naming in the top-level API. If intentional for BC, consider:- Marking it deprecated in providers.ts, pointing to the devtools subpath.
- Optionally re-exporting (or aliasing) it from
devtoolsto fully decouple the root later.
Pure type exports won’t affect tree‑shaking, so this is optional API hygiene.
docs/framework/angular/reference/type-aliases/developertoolsfeature.md (2)
16-16: Minor grammar tweak in source TSDoc (autogen)Prefer “a feature that enables developer tools.” Update the comment in providers.ts; this page is autogenerated.
21-21: Ensure “withDevtools” in See section autolinks to new subpath docsIf the dedicated page moved/was removed, adjust the doc generator so this resolves to
@tanstack/angular-query-experimental/devtools.packages/angular-query-experimental/src/__tests__/inject-devtools-panel.test.ts (5)
34-39: Avoid flaky reliance on vi.waitFor; prefer a stable waitFor import.Not all Vitest versions expose vi.waitFor. Import waitFor directly (from vitest or @testing-library/dom) to ensure portability.
Apply this diff:
- const waitForDevtoolsToBeCreated = async () => { - await vi.waitFor(() => { - expect(mocks.mockTanstackQueryDevtoolsPanel).toHaveBeenCalledTimes(1) - }) - } + const waitForDevtoolsToBeCreated = async () => { + await waitFor(() => { + expect(mocks.mockTanstackQueryDevtoolsPanel).toHaveBeenCalledTimes(1) + }) + }Add the import (outside this range):
import { waitFor } from 'vitest' // or: '@testing-library/dom'Confirm your Vitest version supports vi.waitFor; if not, prefer the import shown above.
98-118: Host element removal path covered; consider a second assertion.Nice coverage of reactive teardown. As a small improvement, assert that unmount is called exactly once to guard against duplicate registrations.
Apply this diff:
- expect(mockDevtoolsPanelInstance.unmount).toHaveBeenCalledTimes(1) + expect(mockDevtoolsPanelInstance.unmount).toHaveBeenCalledTimes(1) + expect(mocks.mockTanstackQueryDevtoolsPanel).toHaveBeenCalledTimes(1)
120-141: Also assert the argument passed to setClient.Verifying the payload catches regressions in client identity propagation.
Apply this diff:
- expect(mockDevtoolsPanelInstance.setClient).toHaveBeenCalledTimes(1) + expect(mockDevtoolsPanelInstance.setClient).toHaveBeenCalledTimes(1) + expect(mockDevtoolsPanelInstance.setClient).toHaveBeenLastCalledWith(expect.any(QueryClient))
143-164: Tighten assertion by checking the new errorTypes value.This helps ensure structural compatibility of the propagated array.
Apply this diff:
- expect(mockDevtoolsPanelInstance.setErrorTypes).toHaveBeenCalledTimes(1) + expect(mockDevtoolsPanelInstance.setErrorTypes).toHaveBeenCalledTimes(1) + expect(mockDevtoolsPanelInstance.setErrorTypes).toHaveBeenLastCalledWith([])
166-190: Verify onClose propagation by value.Asserting the function reference prevents accidental re-wrapping.
Apply this diff:
- expect(mockDevtoolsPanelInstance.setOnClose).toHaveBeenCalledTimes(1) + expect(mockDevtoolsPanelInstance.setOnClose).toHaveBeenCalledTimes(1) + expect(mockDevtoolsPanelInstance.setOnClose).toHaveBeenLastCalledWith(functionB)packages/angular-query-experimental/src/devtools/with-devtools.ts (2)
85-86: Consider adding a comment explaining the injector destruction check.The
injectorIsDestroyedflag is crucial for preventing operations after the injector is destroyed during async import. A brief comment would improve maintainability.+ // Track injector destruction to prevent operations after cleanup let injectorIsDestroyed = false inject(DestroyRef).onDestroy(() => (injectorIsDestroyed = true))
99-104: Consider memoizing the loadDevtools default logic.The
shouldLoadToolsSignalcomputed signal recreates the same conditional logic on each evaluation. While not a significant performance issue, the logic could be slightly cleaner.const shouldLoadToolsSignal = computed(() => { const { loadDevtools } = devtoolsOptions() - return typeof loadDevtools === 'boolean' - ? loadDevtools - : isDevMode() + return loadDevtools === 'auto' || loadDevtools === undefined + ? isDevMode() + : loadDevtools })packages/angular-query-experimental/src/devtools-panel/inject-devtools-panel.ts (1)
69-69: Consider providing more context in the error message.The error message could be more helpful by indicating which option to use for providing the QueryClient.
- if (!client) throw new Error('No QueryClient found') + if (!client) throw new Error('No QueryClient found. Provide one via options.client or ensure QueryClient is provided in the injection context.')packages/angular-query-experimental/src/__tests__/providers.test.ts (3)
133-139: De-flake: extract and reuse an async “flush env init” helperThe timer/import/tick sequence is verbose and duplicated. A single helper reduces noise and mistakes.
- TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - TestBed.tick() - await vi.dynamicImportSettled() - TestBed.tick() - await vi.dynamicImportSettled() + TestBed.inject(ENVIRONMENT_INITIALIZER) + await flushDevtoolsInit()Add once near the top (outside the test) to support this change:
async function flushDevtoolsInit() { await vi.advanceTimersByTimeAsync(0) TestBed.tick() await vi.dynamicImportSettled() TestBed.tick() await vi.dynamicImportSettled() }
54-56: Cleanup timers and DOM between testsStay on the safe side: revert to real timers and remove any leftover devtools containers to avoid cross-test leakage.
afterEach(() => { vi.restoreAllMocks() + vi.useRealTimers() + document.querySelectorAll('.tsqd-parent-container')?.forEach((el) => el.remove()) })
400-407: Strengthen assertion: verify DOM mount/unmount alongside method callsAlso assert the container element is added/removed.
expect(mockDevtoolsInstance.mount).toHaveBeenCalledTimes(1) expect(mockDevtoolsInstance.unmount).toHaveBeenCalledTimes(0) + expect(document.querySelector('.tsqd-parent-container')).not.toBeNull() loadDevtools.set(false) TestBed.tick() expect(mockDevtoolsInstance.unmount).toHaveBeenCalledTimes(1) + expect(document.querySelector('.tsqd-parent-container')).toBeNull()docs/framework/angular/reference/functions/injectqueries.md (1)
12-15: Doc polish: replace “root0” with a meaningful param nameThe autogenerated “root0” is noisy. Consider updating the source TSDoc to name the destructured parameter (e.g., params: { combine?, queries }) so the docs render friendlier names.
docs/framework/angular/reference/functions/infinitequeryoptions.md (4)
29-37: Redundant “& object & object” in return typesDocs show a double object intersection; it’s noise and may confuse readers. Drop the duplicate “& object”.
Apply:
-): CreateInfiniteQueryOptions<...> & - object & - object +): CreateInfiniteQueryOptions<...> & objectand
-): CreateInfiniteQueryOptions<...> & - object & - object +): CreateInfiniteQueryOptions<...> & objectAlso applies to: 151-160
89-101: OmitKeyof overload: same redundant intersectionsSame duplication here; keep a single “& object”.
-): OmitKeyof<...> & - object & - object +): OmitKeyof<...> & object
70-73: Duplicate sentences in Returns sections“The tagged infinite query options.” appears twice per overload. Remove duplicates for readability.
-The tagged infinite query options. - The tagged infinite query options.Also applies to: 133-136, 193-196
14-17: Heading wording: use “Parameters” not “Param”Prefer consistent “Parameters” heading; current text repeats and is singular.
-## Param +## ParametersAlso applies to: 74-77, 137-140, 197-200
docs/framework/angular/reference/functions/injectinfinitequery.md (2)
71-74: Duplicate sentences in Returns sections“The infinite query result.” is repeated. Remove duplicates.
-The infinite query result. - The infinite query result.Also applies to: 130-133, 189-192
55-66: Heading wording and repetitionMultiple “### Param” sections; prefer “Parameters” once per overload with sub-bullets for each param.
-### Param +### ParametersAlso applies to: 114-125, 173-184
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📥 Commits
Reviewing files that changed from the base of the PR and between 0a35234ce48b7f8e5c81999bd309ae9311981280 and 727d5dfaa303aa2be22e7ac7811406370a041c2d.
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (107)
codecov.yml(0 hunks)docs/framework/angular/devtools.md(4 hunks)docs/framework/angular/guides/query-cancellation.md(1 hunks)docs/framework/angular/reference/functions/infinitequeryoptions.md(7 hunks)docs/framework/angular/reference/functions/injectinfinitequery.md(5 hunks)docs/framework/angular/reference/functions/injectisfetching.md(1 hunks)docs/framework/angular/reference/functions/injectismutating.md(1 hunks)docs/framework/angular/reference/functions/injectisrestoring.md(2 hunks)docs/framework/angular/reference/functions/injectmutation.md(2 hunks)docs/framework/angular/reference/functions/injectmutationstate.md(2 hunks)docs/framework/angular/reference/functions/injectqueries.md(1 hunks)docs/framework/angular/reference/functions/injectquery.md(4 hunks)docs/framework/angular/reference/functions/injectqueryclient.md(1 hunks)docs/framework/angular/reference/functions/mutationoptions.md(2 hunks)docs/framework/angular/reference/functions/provideangularquery.md(1 hunks)docs/framework/angular/reference/functions/provideisrestoring.md(1 hunks)docs/framework/angular/reference/functions/providequeryclient.md(1 hunks)docs/framework/angular/reference/functions/providetanstackquery.md(2 hunks)docs/framework/angular/reference/functions/queryfeature.md(1 hunks)docs/framework/angular/reference/functions/queryoptions.md(7 hunks)docs/framework/angular/reference/functions/withdevtools.md(0 hunks)docs/framework/angular/reference/index.md(2 hunks)docs/framework/angular/reference/interfaces/basemutationnarrowing.md(5 hunks)docs/framework/angular/reference/interfaces/basequerynarrowing.md(4 hunks)docs/framework/angular/reference/interfaces/createbasequeryoptions.md(1 hunks)docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md(1 hunks)docs/framework/angular/reference/interfaces/createmutationoptions.md(1 hunks)docs/framework/angular/reference/interfaces/createqueryoptions.md(1 hunks)docs/framework/angular/reference/interfaces/devtoolsoptions.md(0 hunks)docs/framework/angular/reference/interfaces/injectinfinitequeryoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectisfetchingoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectismutatingoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectmutationoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectmutationstateoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectqueryoptions.md(2 hunks)docs/framework/angular/reference/interfaces/queryfeature.md(3 hunks)docs/framework/angular/reference/type-aliases/createbasemutationresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createbasequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md(1 hunks)docs/framework/angular/reference/type-aliases/createmutatefunction.md(2 hunks)docs/framework/angular/reference/type-aliases/createmutationresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createqueryresult.md(1 hunks)docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/developertoolsfeature.md(1 hunks)docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md(1 hunks)docs/framework/angular/reference/type-aliases/queriesoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/queriesresults.md(2 hunks)docs/framework/angular/reference/type-aliases/queryfeaturekind.md(0 hunks)docs/framework/angular/reference/type-aliases/queryfeatures.md(1 hunks)docs/framework/angular/reference/type-aliases/undefinedinitialdatainfiniteoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md(1 hunks)docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md(2 hunks)docs/framework/angular/reference/variables/queryfeatures.md(0 hunks)examples/angular/auto-refetching/src/app/app.config.ts(1 hunks)examples/angular/basic-persister/src/app/app.config.ts(1 hunks)examples/angular/basic/src/app/app.config.ts(1 hunks)examples/angular/devtools-panel/package.json(0 hunks)examples/angular/devtools-panel/src/app/components/basic-devtools-panel-example.component.ts(1 hunks)examples/angular/devtools-panel/src/app/components/lazy-load-devtools-panel-example.component.ts(2 hunks)examples/angular/infinite-query-with-max-pages/src/app/app.config.ts(1 hunks)examples/angular/optimistic-updates/src/app/app.config.ts(1 hunks)examples/angular/pagination/src/app/app.config.ts(1 hunks)examples/angular/query-options-from-a-service/src/app/app.config.ts(1 hunks)examples/angular/router/src/app/app.config.ts(1 hunks)examples/angular/rxjs/src/app/app.config.ts(1 hunks)examples/angular/simple/src/app/app.config.ts(1 hunks)knip.json(1 hunks)package.json(0 hunks)packages/angular-query-devtools-experimental/.attw.json(0 hunks)packages/angular-query-devtools-experimental/eslint.config.js(0 hunks)packages/angular-query-devtools-experimental/package.json(0 hunks)packages/angular-query-devtools-experimental/root.eslint.config.js(0 hunks)packages/angular-query-devtools-experimental/src/index.ts(0 hunks)packages/angular-query-devtools-experimental/src/inject-devtools-panel.ts(0 hunks)packages/angular-query-devtools-experimental/src/test-setup.ts(0 hunks)packages/angular-query-devtools-experimental/tsconfig.json(0 hunks)packages/angular-query-devtools-experimental/tsconfig.prod.json(0 hunks)packages/angular-query-devtools-experimental/tsup.config.ts(0 hunks)packages/angular-query-devtools-experimental/vite.config.ts(0 hunks)packages/angular-query-experimental/eslint.config.js(1 hunks)packages/angular-query-experimental/package.json(3 hunks)packages/angular-query-experimental/src/__tests__/inject-devtools-panel.test.ts(12 hunks)packages/angular-query-experimental/src/__tests__/providers.test.ts(5 hunks)packages/angular-query-experimental/src/devtools-panel/index.ts(1 hunks)packages/angular-query-experimental/src/devtools-panel/inject-devtools-panel.ts(1 hunks)packages/angular-query-experimental/src/devtools-panel/production/index.ts(1 hunks)packages/angular-query-experimental/src/devtools-panel/stub.ts(1 hunks)packages/angular-query-experimental/src/devtools-panel/types.ts(1 hunks)packages/angular-query-experimental/src/devtools/index.ts(1 hunks)packages/angular-query-experimental/src/devtools/production/index.ts(1 hunks)packages/angular-query-experimental/src/devtools/stub.ts(1 hunks)packages/angular-query-experimental/src/devtools/types.ts(1 hunks)packages/angular-query-experimental/src/devtools/with-devtools.ts(1 hunks)packages/angular-query-experimental/src/index.ts(1 hunks)packages/angular-query-experimental/src/infinite-query-options.ts(0 hunks)packages/angular-query-experimental/src/inject-infinite-query.ts(0 hunks)packages/angular-query-experimental/src/inject-is-mutating.ts(0 hunks)packages/angular-query-experimental/src/inject-is-restoring.ts(1 hunks)packages/angular-query-experimental/src/inject-mutation-state.ts(0 hunks)packages/angular-query-experimental/src/inject-mutation.ts(0 hunks)packages/angular-query-experimental/src/inject-queries.ts(0 hunks)packages/angular-query-experimental/src/inject-query-client.ts(0 hunks)
⛔ Files not processed due to max files limit (8)
- packages/angular-query-experimental/src/inject-query.ts
- packages/angular-query-experimental/src/providers.ts
- packages/angular-query-experimental/src/query-options.ts
- packages/angular-query-experimental/src/types.ts
- packages/angular-query-experimental/src/util/is-dev-mode/is-dev-mode.ts
- packages/angular-query-experimental/vite.config.ts
- packages/angular-query-persist-client/package.json
- scripts/publish.ts
💤 Files with no reviewable changes (25)
- docs/framework/angular/reference/functions/withdevtools.md
- examples/angular/devtools-panel/package.json
- packages/angular-query-devtools-experimental/tsconfig.json
- packages/angular-query-devtools-experimental/tsconfig.prod.json
- docs/framework/angular/reference/interfaces/devtoolsoptions.md
- packages/angular-query-experimental/src/inject-is-mutating.ts
- package.json
- packages/angular-query-devtools-experimental/eslint.config.js
- docs/framework/angular/reference/variables/queryfeatures.md
- packages/angular-query-experimental/src/inject-query-client.ts
- packages/angular-query-experimental/src/inject-infinite-query.ts
- packages/angular-query-devtools-experimental/src/inject-devtools-panel.ts
- packages/angular-query-experimental/src/infinite-query-options.ts
- packages/angular-query-experimental/src/inject-queries.ts
- codecov.yml
- packages/angular-query-devtools-experimental/src/test-setup.ts
- packages/angular-query-devtools-experimental/tsup.config.ts
- packages/angular-query-experimental/src/inject-mutation-state.ts
- packages/angular-query-experimental/src/inject-mutation.ts
- packages/angular-query-devtools-experimental/src/index.ts
- packages/angular-query-devtools-experimental/.attw.json
- docs/framework/angular/reference/type-aliases/queryfeaturekind.md
- packages/angular-query-devtools-experimental/root.eslint.config.js
- packages/angular-query-devtools-experimental/vite.config.ts
- packages/angular-query-devtools-experimental/package.json
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-19T03:18:18.303Z
Learnt from: oscartbeaumont PR: TanStack/query#9564 File: packages/solid-query-devtools/src/production.tsx:2-3 Timestamp: 2025-08-19T03:18:18.303Z Learning: In the solid-query-devtools package, the codebase uses a pattern of type-only default imports combined with typeof for component type annotations (e.g., `import type SolidQueryDevtoolsComp from './devtools'` followed by `typeof SolidQueryDevtoolsComp`). This pattern is consistently used across index.tsx and production.tsx files, and the maintainers prefer consistency over changing this approach.Applied to files:
packages/angular-query-experimental/src/devtools/index.tspackages/angular-query-experimental/package.jsonpackages/angular-query-experimental/src/devtools-panel/types.tspackages/angular-query-experimental/src/devtools/types.tspackages/angular-query-experimental/src/index.ts
📚 Learning: 2025-09-02T17:57:33.139Z
Learnt from: TkDodo PR: TanStack/query#9612 File: packages/query-async-storage-persister/src/asyncThrottle.ts:0-0 Timestamp: 2025-09-02T17:57:33.139Z Learning: When importing from tanstack/query-core in other TanStack Query packages like query-async-storage-persister, a workspace dependency "tanstack/query-core": "workspace:*" needs to be added to the package.json.Applied to files:
packages/angular-query-experimental/package.json
🧬 Code graph analysis (7)
packages/angular-query-experimental/src/devtools-panel/stub.ts (2)
packages/angular-query-experimental/src/devtools-panel/inject-devtools-panel.ts (1)
injectDevtoolsPanel(33-110)
packages/angular-query-experimental/src/devtools-panel/types.ts (1)
InjectDevtoolsPanel(54-57)
packages/angular-query-experimental/src/devtools/stub.ts (2)
packages/angular-query-experimental/src/devtools/with-devtools.ts (1)
withDevtools(61-180)
packages/angular-query-experimental/src/devtools/types.ts (1)
WithDevtools(104-107)
packages/angular-query-experimental/src/devtools-panel/inject-devtools-panel.ts (2)
packages/angular-query-experimental/src/devtools-panel/stub.ts (1)
injectDevtoolsPanel(5-7)
packages/angular-query-experimental/src/devtools-panel/types.ts (3)
InjectDevtoolsPanel(54-57)DevtoolsPanelOptions(24-52)InjectDevtoolsPanelOptions(5-12)
packages/angular-query-experimental/src/devtools-panel/types.ts (1)
packages/angular-query-experimental/src/devtools-panel/index.ts (4)
InjectDevtoolsPanelOptions(4-4)DevtoolsPanelRef(5-5)DevtoolsPanelOptions(3-3)InjectDevtoolsPanel(2-2)
packages/angular-query-experimental/src/devtools/types.ts (3)
packages/angular-query-experimental/src/devtools/index.ts (4)
WithDevtoolsOptions(5-5)DevtoolsOptions(2-2)WithDevtoolsFn(4-4)WithDevtools(3-3)
packages/angular-query-experimental/src/index.ts (1)
DeveloperToolsFeature(51-51)
packages/angular-query-experimental/src/providers.ts (1)
DeveloperToolsFeature(158-158)
packages/angular-query-experimental/src/devtools/with-devtools.ts (3)
packages/angular-query-experimental/src/devtools/types.ts (4)
DevtoolsOptions(41-100)WithDevtools(104-107)WithDevtoolsFn(102-102)WithDevtoolsOptions(12-36)
packages/angular-query-experimental/src/devtools/stub.ts (1)
withDevtools(4-7)
packages/angular-query-experimental/src/providers.ts (1)
queryFeature(146-151)
packages/angular-query-experimental/src/__tests__/providers.test.ts (3)
packages/angular-query-experimental/src/providers.ts (1)
provideTanStackQuery(105-113)
packages/angular-query-experimental/src/devtools/with-devtools.ts (1)
withDevtools(61-180)
packages/angular-query-experimental/src/devtools/stub.ts (1)
withDevtools(4-7)
🪛 LanguageTool
docs/framework/angular/reference/functions/injectisrestoring.md
[grammar] ~30-~30: There might be a mistake here. Context: ...
Signal<boolean> readonly signal with boolean that indicates whether a restor...(QB_NEW_EN)
[grammar] ~30-~30: There might be a mistake here. Context: ...icates whether a restore is in progress.
(QB_NEW_EN)
docs/framework/angular/reference/type-aliases/developertoolsfeature.md
[grammar] ~16-~16: There might be a mistake here. Context: ...a feature which enables developer tools. The type is used to describe the return ...
(QB_NEW_EN)
docs/framework/angular/reference/type-aliases/queriesresults.md
[grammar] ~38-~38: There might be a mistake here. Context: ...62) QueriesResults reducer recursively maps type param to results ## Type Paramete...
(QB_NEW_EN)
docs/framework/angular/reference/functions/providetanstackquery.md
[grammar] ~80-~80: There might be a mistake here. Context: ...absent from the main application bundle. This can be beneficial if you want to in...
(QB_NEW_EN)
docs/framework/angular/devtools.md
[grammar] ~112-~112: There might be a mistake here. Context: ...eps`. The injected value will be passed as parameter to the callback function. Th...
(QB_NEW_EN)
docs/framework/angular/reference/functions/infinitequeryoptions.md lines 40 to 41OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -24,13 +26,16 @@2426 TPageParam,2527 >(2628 options,27-): DefinedInitialDataInfiniteOptions<29+): CreateInfiniteQueryOptions<2830 TQueryFnData,2931 TError,3032 TData,3133 TQueryKey,3234 TPageParam3335 > &36+ object &3437 object3538 ```363940+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)41+⚠️ Potential issue
Broken repo link in “Defined in” (points to fork)
Links point to arnoud-dv/query. For published docs, link to TanStack/query.
-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) +Defined in: [infinite-query-options.ts:88](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L88)Repeat for the other “Defined in” entries in this file.
Also applies to: 103-104, 163-164
🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/infinitequeryoptions.md around lines 40-41 (and likewise update the other “Defined in” entries at lines 103-104 and 163-164), the GitHub links point to the fork arnoud-dv/query; change those URLs to the canonical TanStack/query repository by replacing the owner segment (arnoud-dv) with TanStack so the “Defined in” links reference https://github.com/TanStack/query/... using the same path and line numbers; apply the same owner replacement for each affected link in this file.✅ Addressed in commit a32e4c0
@@ -60,5 +65,5 @@60656166 ### Returns626763-[`DefinedInitialDataInfiniteOptions`](../../type-aliases/definedinitialdatainfiniteoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> & `object`68+[`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\> & `object` & `object`6469💡 Verification agent
🧩 Analysis chain
Validate 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 Change all links in docs/framework/angular/reference from
../interfaces/createinfinitequeryoptions.mdto../type-aliases/createinfinitequeryoptions.md(in functions/infinitequeryoptions.md at lines 68, 131, 191; injectinfinitequery.md at line 175; and index.md at line 15).🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/infinitequeryoptions.md around lines 68-69, update the Markdown link target from ../../interfaces/createinfinitequeryoptions.md to ../../type-aliases/createinfinitequeryoptions.md; also update the same link in docs/framework/angular/reference/functions/infinitequeryoptions.md at lines ~131 and ~191, in docs/framework/angular/reference/functions/injectinfinitequery.md at line ~175, and in docs/framework/angular/reference/index.md at line ~15 so all references point to ../type-aliases/createinfinitequeryoptions.md instead of ../interfaces/createinfinitequeryoptions.md.docs/framework/angular/reference/functions/injectinfinitequery.md lines 36 to 37OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -31,3 +33,5 @@3133 ): DefinedCreateInfiniteQueryResult<TData, TError>3234 ```333536+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)37+⚠️ Potential issue
Broken repo link in “Defined in” (points to fork)
Replace arnoud-dv/query with TanStack/query for public docs.
-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) +Defined in: [inject-infinite-query.ts:41](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L41)(Repeat for the other “Defined in” blocks.)
Also applies to: 95-96, 154-155
🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/injectinfinitequery.md around lines 36-37 (and similarly update the other “Defined in” blocks at lines 95-96 and 154-155), the "Defined in" link points to the forked repository (arnoud-dv/query); update the link target to the canonical TanStack/query repository by replacing "arnoud-dv/query" with "TanStack/query" in each of those link URLs so the public docs reference the upstream source.✅ Addressed in commit a32e4c0
@@ -3,9 +3,13 @@33 title: injectIsMutating44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: injectIsMutating()79810 ```ts911 function injectIsMutating(filters?, options?): Signal<number>1012 ```111314+Defined in: [inject-is-mutating.ts:30](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L30)15+💡 Verification agent
🧩 Analysis chain
Fix GitHub source link: points to personal fork; switch to TanStack (or pin a SHA). Linking to a fork will 404 after merge and line anchors are brittle. Point to TanStack/query and ideally use a commit permalink.
Apply:
-Defined in: [inject-is-mutating.ts:30](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L30) +Defined in: [inject-is-mutating.ts:30](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L30)Run to find other occurrences:
🏁 Script executed:
#!/bin/bash rg -n "github\.com/arnoud-dv/query" docs/framework/angularLength of output: 15539
Replace all personal-fork GitHub links with TanStack/query permalinks In every file under docs/framework/angular, update links of the form
https://github.com/arnoud-dv/query/blob/main/…to
https://github.com/TanStack/query/blob/<commit-SHA>/…(pinning a specific commit makes line anchors stable).
🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/injectismutating.md around lines 14 to 15, the file contains a personal-fork GitHub link (https://github.com/arnoud-dv/query/...) that must be replaced with a TanStack/query permalink pinned to a specific commit SHA (https://github.com/TanStack/query/blob/<commit-SHA>/...), so update the URL to point to the TanStack repo and include the exact commit SHA for the referenced file/line to ensure stable anchors.docs/framework/angular/reference/functions/injectmutationstate.md lines 17 to 18OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -12,3 +14,5 @@1214 ): Signal<TResult[]>1315 ```141617+Defined in: [inject-mutation-state.ts:60](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L60)18+💡 Verification agent
🧩 Analysis chain
Fix “Defined in” link: use TanStack org and consider a permalink
Avoid linking to a fork; prefer org repo and, if possible, pin to the merge commit to prevent drift.
-Defined in: [inject-mutation-state.ts:60](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L60) +Defined in: [inject-mutation-state.ts:60](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L60)
🏁 Script executed:
#!/bin/bash # Verify the function declaration location. rg -nP 'export function\s+injectMutationState\b' packages/angular-query-experimental/src/inject-mutation-state.ts -n -C2Length of output: 381
Fix “Defined in” link Update the link to use the official TanStack/query repo (and consider pinning to a commit SHA to prevent future drift):
-Defined in: [inject-mutation-state.ts:60](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L60) +Defined in: [inject-mutation-state.ts:60](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L60)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [inject-mutation-state.ts:60](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L60)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/injectmutationstate.md around lines 17 to 18, the "Defined in" link points to the forked query repo; update it to the official TanStack/query repository URL and preferably pin it to a specific commit SHA (or tag) to prevent drift — replace the current GitHub URL with the corresponding file path in https://github.com/TanStack/query at the desired commit SHA and verify the link resolves to the exact line number reference.✅ Addressed in commits a32e4c0 to c18e6c2
@@ -3,12 +3,16 @@33 title: injectQueries44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: injectQueries()79810 ```ts911 function injectQueries<T, TCombinedResult>(10- __namedParameters,12+ root0,1113 injector?,1214 ): Signal<TCombinedResult>1315 ```141617+Defined in: [inject-queries.ts:202](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L202)18+💡 Verification agent
🧩 Analysis chain
Fix “Defined in” link target (points to fork)
Use TanStack/query to avoid broken links after merge; also update the docs generator config to emit the canonical repo URL.
-Defined in: [inject-queries.ts:202](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L202) +Defined in: [inject-queries.ts:202](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L202)
🏁 Script executed:
#!/usr/bin/env bash rg -n "arnoud-dv/query" -C2 docs/framework/angular/reference/functions/injectqueries.md rg -n "TanStack/query" -C2 docs/framework/angular/reference/functions/injectqueries.mdLength of output: 359
Fix “Defined in” link to point to TanStack/query repo
-Defined in: [inject-queries.ts:202](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L202) +Defined in: [inject-queries.ts:202](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L202)Also update the docs-generator config to emit canonical TanStack/query URLs.
📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [inject-queries.ts:202](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L202)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/injectqueries.md around lines 17 to 18, the "Defined in" link currently points to the query implementation in our repo; update that link to the canonical TanStack/query source URL (point to the appropriate file and line in the TanStack/query repo), and adjust the docs-generator configuration so generated "Defined in" links use the TanStack/query canonical base URL (update the repo base or mapping in the generator config and regenerate docs).@@ -59,3 +61,5 @@5961 ): DefinedCreateQueryResult<TData, TError>6062 ```616364+Defined in: [inject-query.ts:65](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L65)65+💡 Verification agent
🧩 Analysis chain
Fix all “Defined in” links: avoid personal fork; use TanStack (or commit permalinks). These will break post-merge and anchors drift.
Apply:
-Defined in: [inject-query.ts:65](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L65) +Defined in: [inject-query.ts:65](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L65) -Defined in: [inject-query.ts:116](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L116) +Defined in: [inject-query.ts:116](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L116) -Defined in: [inject-query.ts:167](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L167) +Defined in: [inject-query.ts:167](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query.ts#L167)Check for more:
Also applies to: 156-157, 248-249
🏁 Script executed:
#!/bin/bash rg -n "github\.com/arnoud-dv/query" docs/framework/angularLength of output: 15539
Replace all personal-fork “Defined in” links across Angular docs Search for
https://github.com/arnoud-dv/query/blob/mainindocs/framework/angularand update each “Defined in” URL tohttps://github.com/TanStack/query/blob/main(or better, use commit-hash permalinks) to avoid broken links post-merge.🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/injectquery.md around lines 64 to 65, the "Defined in" link points to a personal fork URL (https://github.com/arnoud-dv/query/blob/main); update this link to the official TanStack repo URL (https://github.com/TanStack/query/blob/main) or, preferably, replace it with a commit-hash permalink to the correct file path (packages/angular-query-experimental/src/inject-query.ts) so links remain valid after merging; apply the same replacement for all occurrences under docs/framework/angular by searching for the arnoud-dv base URL and switching to the TanStack base or commit-specific permalinks.docs/framework/angular/reference/functions/injectqueryclient.md lines 14 to 15OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,9 +3,13 @@33 title: injectQueryClient44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: ~~injectQueryClient()~~79810 ```ts911 function injectQueryClient(injectOptions): QueryClient1012 ```111314+Defined in: [inject-query-client.ts:18](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-query-client.ts#L18)15+⚠️ Potential issue
Fix GitHub source link to canonical repo (avoid fork URL).
Point to TanStack/query to prevent broken links post-merge.
Apply this diff:
-Defined in: [inject-query-client.ts:18](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-query-client.ts#L18) +Defined in: [inject-query-client.ts:18](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query-client.ts#L18)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [inject-query-client.ts:18](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query-client.ts#L18)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/injectqueryclient.md around lines 14 to 15, the GitHub source link points to a fork; update the URL to the canonical TanStack repository to avoid broken links after merge by replacing the current fork URL with https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-query-client.ts#L18 so it points to the canonical inject-query-client.ts location.✅ Addressed in commit a32e4c0
@@ -11,3 +13,5 @@1113 ): CreateMutationOptions<TData, TError, TVariables, TContext>1214 ```131516+Defined in: [mutation-options.ts:37](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L37)17+🛠️ Refactor suggestion
Fix the “Defined in” link to target the main repo and avoid fragile line anchors.
Link points to a contributor fork (arnoud-dv/query) and a specific line that can drift. Point to the main repo and drop the line anchor to reduce churn.
-Defined in: [mutation-options.ts:37](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L37) +Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)If this is templated, update the generator so all pages use the canonical slug and avoid line anchors.
📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/mutationoptions.md around lines 16-17, the "Defined in" link points to a contributor fork and includes a fragile line anchor; update the URL to point to the canonical main repository (e.g. github.com/query-js/query or the project's main org repo) and remove the line number anchor so it links to the file path only; if this page is generated by a template, update the generator to emit the canonical repo slug and omit line anchors for all generated "Defined in" links.docs/framework/angular/reference/functions/provideangularquery.md lines 14 to 16OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +1,16 @@1+---2+id: provideAngularQuery3+title: provideAngularQuery4+---5+6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+8+# Function: ~~provideAngularQuery()~~9+10+```ts11+function provideAngularQuery(queryClient): Provider[]12+```13+14+Defined in: [providers.ts:124](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L124)15+16+Sets up providers necessary to enable TanStack Query functionality for Angular applications.⚠️ Potential issue
Update GitHub source link to canonical TanStack repo.
Avoid linking to a contributor fork in published docs.
Apply this diff:
-Defined in: [providers.ts:124](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L124) +Defined in: [providers.ts:124](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L124)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [providers.ts:124](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L124) Sets up providers necessary to enable TanStack Query functionality for Angular applications.🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/provideangularquery.md around lines 14 to 16, the GitHub source link points to a contributor fork (arnoud-dv); update the URL to the canonical TanStack repository by replacing "https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L124" with "https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L124" so the docs link to the official source.✅ Addressed in commit a32e4c0
@@ -3,9 +3,13 @@33 title: provideIsRestoring44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: provideIsRestoring()79810 ```ts911 function provideIsRestoring(isRestoring): Provider1012 ```111314+Defined in: [inject-is-restoring.ts:43](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-is-restoring.ts#L43)15+💡 Verification agent
🧩 Analysis chain
Fix “Defined in” link to target the canonical repo and a stable permalink. Current link points to arnoud-dv/query and to main’s moving head. After merge, this will be wrong or drift. Generate links against TanStack/query and pin to the merge commit SHA (or configure the generator to emit permalinks).
🏁 Script executed:
#!/bin/bash git remote -vLength of output: 132
🏁 Script executed:
#!/bin/bash set -e find docs/framework/angular/reference/functions -type f | grep -i provideisrestoring sed -n '1,30p' docs/framework/angular/reference/functions/provideisrestoring.mdLength of output: 886
Update “Defined in” link to canonical TanStack/query with stable permalink docs/framework/angular/reference/functions/provideisrestoring.md:14-15 — Replace the arnoud-dv/query main-branch URL with a TanStack/query permalink referencing the merge commit SHA (or adjust the generator to emit permalinks).
🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/provideisrestoring.md around lines 14 to 15, the "Defined in" link points to arnoud-dv/query main-branch; replace it with the canonical TanStack/query repository permalink that references the specific merge commit SHA (or update the docs generator to emit permalinks) so the link is stable — update the URL to https://github.com/TanStack/query/blob/<MERGE_COMMIT_SHA>/packages/angular-query-experimental/src/inject-is-restoring.ts#L43 (or change generator logic to produce that format).@@ -3,3 +3,5 @@33 title: provideQueryClient44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+💡 Verification agent
🧩 Analysis chain
Sweep for similar issues across generated Angular docs
Likely other pages have the forked GitHub base and the malformed “|QueryClient” pattern. Recommend a quick repo-wide check.
Also applies to: 14-15, 17-18
🏁 Script executed:
#!/bin/bash # Find malformed pipe-style links (e.g., ...|QueryClient) in Markdown rg -nP '\]\(https?://[^\s)]+\|[^\s)]+\)' docs/framework/angular -g '**/*.md' -C1 # Find links pointing to the contributor fork instead of TanStack rg -n 'github\.com/arnoud-dv/query' docs/framework/angular -g '**/*.md' -C1 # Find "Defined in:" links that pin to main with line anchors (consider replacing with commit-sha permalinks) rg -nP 'Defined in: \[.*\]\(https://github\.com/TanStack/query/blob/main/.+?#L\d+\)' docs/framework/angular -g '**/*.md' -C1Length of output: 26882
Fix malformed Markdown link and outdated GitHub references in Angular docs
- In docs/framework/angular/reference/functions/providequeryclient.md (lines 17–18), replace
[https://tanstack.com/query/latest/docs/reference/QueryClient|QueryClient]with[QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient). - Repo-wide, update all “Defined in:” links under docs/framework/angular/reference/** from
github.com/arnoud-dv/query→github.com/TanStack/query(use commit-SHA permalinks instead of branch URLs).
🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/providequeryclient.md around lines 17–18, fix the malformed Markdown link by replacing `[https://tanstack.com/query/latest/docs/reference/QueryClient|QueryClient]` with `[QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient)`; additionally, across docs/framework/angular/reference/** update all "Defined in:" links that point to `github.com/arnoud-dv/query` to `github.com/TanStack/query` and convert branch-based URLs to commit-SHA permalinks (use the appropriate commit SHA for each file to form https://github.com/TanStack/query/blob/<COMMIT_SHA>/path/to/file links) so the references are correct and stable.docs/framework/angular/reference/functions/providequeryclient.md lines 14 to 15OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,9 +3,13 @@33 title: provideQueryClient44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: provideQueryClient()79810 ```ts911 function provideQueryClient(queryClient): Provider1012 ```111314+Defined in: [providers.ts:14](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L14)15+🛠️ Refactor suggestion
Fix “Defined in” link to point to the upstream repo and avoid fragile line anchors
The link targets a contributor fork (arnoud-dv/query). It should point to the upstream TanStack repo. Also, anchoring to a moving line number on main is brittle; either pin to a commit SHA or drop the line anchor.
Apply one of these:
Option A (upstream + keep anchor; quick fix):
-Defined in: [providers.ts:14](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L14) +Defined in: [providers.ts:14](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L14)Option B (upstream + stable link; preferred if you can inject a commit SHA at gen time):
-Defined in: [providers.ts:14](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L14) +Defined in: [providers.ts](https://github.com/TanStack/query/blob/<COMMIT_SHA>/packages/angular-query-experimental/src/providers.ts#L14)Option C (upstream + drop line to avoid drift):
-Defined in: [providers.ts:14](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L14) +Defined in: [providers.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [providers.ts:14](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L14)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/providequeryclient.md around lines 14-15, the "Defined in" link points to a contributor fork and to a fragile line-number anchor; update the link to the upstream TanStack repository (https://github.com/TanStack/query) and either (preferred) pin it to a specific commit SHA so the anchor is stable, or if you cannot determine a commit at generation time, change the URL to the upstream file path without a line-number anchor to avoid drift; ensure the visible link text remains the same and that the URL uses the upstream repo and not the arnoud-dv fork.✅ Addressed in commit a32e4c0
@@ -3,12 +3,16 @@33 title: provideQueryClient44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: provideQueryClient()79810 ```ts911 function provideQueryClient(queryClient): Provider1012 ```111314+Defined in: [providers.ts:14](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L14)15+1216 Usually [provideTanStackQuery](../providetanstackquery.md) is used once to set up TanStack Query and the1317 [https://tanstack.com/query/latest/docs/reference/QueryClient\|QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient|QueryClient)1418 for the entire application. Internally it calls `provideQueryClient`.⚠️ Potential issue
Broken QueryClient link formatting
The current Markdown uses a literal URL with a pipe in the text and target, which won’t render correctly.
Apply this fix:
-[https://tanstack.com/query/latest/docs/reference/QueryClient\|QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient|QueryClient) +[QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
[QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient) for the entire application. Internally it calls `provideQueryClient`.🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/providequeryclient.md around lines 17 to 18, the Markdown link is malformed because it contains a literal pipe in the link text/target; replace the current broken text with a proper Markdown link by using the format [QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient) so the link renders correctly.@@ -3,9 +3,12 @@33 title: queryFeature44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: queryFeature()79810 ```ts911 function queryFeature<TFeatureKind>(kind, providers): QueryFeature<TFeatureKind>1012 ```111314+Defined in: [providers.ts:146](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L146)💡 Verification agent
🧩 Analysis chain
Fix “Defined in” link to point at the TanStack repo
The URL targets arnoud-dv/query; for upstream docs it should point to TanStack/query. Please update the docs generator base URL so links resolve to the main repo.
Run to find other occurrences:
🏁 Script executed:
#!/bin/bash rg -n -C1 -S 'arnoud-dv/query' docs/Length of output: 26102
Update docs generator base URL for all “Defined in” links All occurrences of
https://github.com/arnoud-dv/queryin “Defined in:” links underdocs/must point tohttps://github.com/TanStack/query. Update the docs generator’s base URL so these links resolve to the upstream TanStack repo.🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/queryfeature.md around line 14, the "Defined in" link uses the old base URL https://github.com/arnoud-dv/query; update the docs generator configuration (the base URL used when producing "Defined in" links under docs/) to use https://github.com/TanStack/query instead so all generated "Defined in" links point to the upstream TanStack repo; change the base URL in the docs generator settings or template and regenerate the docs so this file (and all others) reflect the new URL.docs/framework/angular/reference/functions/queryoptions.md lines 42 to 43OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -32,6 +34,10 @@3234 ```ts3335 function queryOptions<TQueryFnData, TError, TData, TQueryKey>(3436 options,35-): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object37+): Omit<CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> &38+ object &39+ object3640 ```374142+Defined in: [query-options.ts:76](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L76)43+⚠️ Potential issue
Source links point to a fork; switch to canonical repo
These should target TanStack/query to avoid broken links after merge.
-Defined in: [query-options.ts:76](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L76) +Defined in: [query-options.ts:76](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L76)Also update the similar links at Lines 105–106 and 163–164. Prefer fixing this in the docs generator config rather than hand-editing the output.
📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [query-options.ts:76](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L76)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/queryoptions.md around lines 42–43 (and also update similar links at lines 105–106 and 163–164), the source links currently point to a forked repository URL; change the docs generator configuration so generated "Defined in" source links use the canonical TanStack/query repository (adjust the base repo/org and path mapping to point to https://github.com/tanstack/query and correct package path), then regenerate the docs so those three link locations reference the canonical repo instead of the fork rather than hand-editing the markdown.✅ Addressed in commit a32e4c0
docs/framework/angular/reference/functions/queryoptions.md lines 105 to 106OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -85,13 +91,16 @@859186-### Defined in87-88-[query-options.ts:78](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L78)89-9092 ## Call Signature91939294 ```ts9395 function queryOptions<TQueryFnData, TError, TData, TQueryKey>(9496 options,95-): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & object97+): OmitKeyof<98+ CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey>,99+ 'queryFn'100+> &101+ object &102+ object96103 ```97104105+Defined in: [query-options.ts:108](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L108)106+⚠️ Potential issue
Fix canonical link (same as above)
Update to TanStack/query.
-Defined in: ... arnoud-dv/query ... +Defined in: ... TanStack/query ...📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [query-options.ts:108](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L108)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/queryoptions.md around lines 105 to 106, the canonical link currently points to the old repository; update the reference to point to the TanStack/query canonical location (replace the existing query-options.ts link with the equivalent TanStack/query URL or package path). Ensure the displayed "Defined in" link and any internal hrefs are updated to the correct TanStack/query file path so the documentation references the upstream source.✅ Addressed in commit a32e4c0
docs/framework/angular/reference/functions/queryoptions.md lines 163 to 164OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -143,15 +152,13 @@143152144153 The query options to tag with the type from `queryFn`.145154146-### Defined in147-148-[query-options.ts:111](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L111)149-150155 ## Call Signature151156152157 ```ts153158 function queryOptions<TQueryFnData, TError, TData, TQueryKey>(154159 options,155-): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & object160+): CreateQueryOptions<TQueryFnData, TError, TData, TQueryKey> & object & object156161 ```157162163+Defined in: [query-options.ts:140](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L140)164+⚠️ Potential issue
Fix canonical link (same as above)
Point to TanStack/query.
-Defined in: ... arnoud-dv/query ... +Defined in: ... TanStack/query ...📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [query-options.ts:140](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L140)🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/queryoptions.md around lines 163-164, the canonical link currently points to the project’s own query-options.ts; update the canonical/reference link to point to the corresponding TanStack/query location (use the official TanStack/query docs URL for the QueryOptions reference) so the doc references the upstream source; replace the existing link target with the TanStack/query canonical URL and ensure the anchor/path matches the QueryOptions definition in TanStack/query.✅ Addressed in commit a32e4c0
docs/framework/angular/reference/interfaces/basequerynarrowing.md line 10OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,5 +3,8 @@33 title: BaseQueryNarrowing44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Interface: BaseQueryNarrowing\<TData, TError\>7910+Defined in: [types.ts:56](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L56)🛠️ Refactor suggestion
Canonicalize “Defined in” links.
These still reference arnoud-dv/query. Switch to TanStack/query or use relative links.
Same diff pattern as suggested in QueryFeature.
Also applies to: 26-26, 46-46, 66-66
🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/basequerynarrowing.md around lines 10, 26, 46 and 66 the "Defined in" links point to arnoud-dv/query; update each link to reference the correct TanStack/query repository (or use a repository-relative link) preserving the file path and line number formatting (e.g. replace the host and owner segment with tanstack/query or convert to a relative ./src/… path), and apply the same canonicalization pattern used in QueryFeature so all four links resolve to the correct target.✅ Addressed in commit a32e4c0
@@ -19,8 +23,10 @@1923 isError: (this) => this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"error", TData, TError>>;2024 ```212526+Defined in: [types.ts:64](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L64)27+2228 #### Parameters23292430 ##### this253126-[`CreateBaseQueryResult`](../../type-aliases/createbasequeryresult.md)\<`TData`, `TError`, `QueryObserverResult`\<`TData`, `TError`\>\>32+[`CreateBaseQueryResult`](../../type-aliases/createbasequeryresult.md)\<`TData`, `TError`\>💡 Verification agent
🧩 Analysis chain
Confirm CreateBaseQueryResult arity consistency across docs.
Parameters now reference the 2-generic alias; returns use the 3-generic form. If intentional, fine—otherwise, align them.
Run to spot any lingering old-arity references:
Also applies to: 52-52, 72-72
🏁 Script executed:
#!/bin/bash rg -n 'CreateBaseQueryResult<[^>]*,[^>]*,[^>]+' docs/framework/angular/reference \ | sed -n '1,200p'Length of output: 1330
Align CreateBaseQueryResult arity to three generics The alias
CreateBaseQueryResultis defined as<TData, TError, TState>; update the Markdown links at lines 32, 52, and 72 indocs/framework/angular/reference/interfaces/basequerynarrowing.mdto<TData, TError, TState>.🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/basequerynarrowing.md around lines 32, 52 and 72, the Markdown links to CreateBaseQueryResult use two generic parameters `<TData, TError>` but the type alias now has three generics `<TData, TError, TState>`; update each link at those lines to include the third generic so they read CreateBaseQueryResult<TData, TError, TState>, preserving the existing relative link path.docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md line 10OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,4 +3,8 @@33 title: CreateInfiniteQueryOptions44 ---556-# Interface: CreateInfiniteQueryOptions\<TQueryFnData, TError, TData, TQueryData, TQueryKey, TPageParam\>6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+8+# Interface: CreateInfiniteQueryOptions\<TQueryFnData, TError, TData, TQueryKey, TPageParam\>9+10+Defined in: [types.ts:80](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L80)⚠️ Potential issue
Fix “Defined in” link to point to the canonical repo.
The link targets a fork (
arnoud-dv/query). Use the main repo to avoid broken references post-merge.-Defined in: [types.ts:80](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L80) +Defined in: [types.ts:80](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L80)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [types.ts:80](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L80)🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md around line 10, the "Defined in" link points to a fork (arnoud-dv/query); update the URL to the canonical repository by replacing https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L80 with the main repo equivalent (e.g. https://github.com/tanstack/query/blob/main/packages/angular-query-experimental/src/types.ts#L80) so the reference resolves to the canonical source.✅ Addressed in commits a32e4c0 to c18e6c2
@@ -3,5 +3,9 @@33 title: CreateMutationOptions44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Interface: CreateMutationOptions\<TData, TError, TVariables, TContext\>7910+Defined in: [mutation-options.ts:48](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L48)11+🛠️ Refactor suggestion
Fix the “Defined in” link to target the main repo and avoid fragile line anchors.
Same issue as the function page: use the canonical repo and drop the line anchor.
-Defined in: [mutation-options.ts:48](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L48) +Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)If generated, apply the change in the template.
📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/createmutationoptions.md around lines 10 to 11, the "Defined in" link currently points to a branch-specific URL with a fragile line anchor; update it to point to the canonical main repository file path without the line number fragment (e.g. link to https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts) so it targets the main repo and omits the line anchor; if this markdown is generated, update the template to construct repository links using the main branch base URL and exclude line-specific anchors.docs/framework/angular/reference/interfaces/injectinfinitequeryoptions.md lines 10 to 11OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,5 +3,9 @@33 title: InjectInfiniteQueryOptions44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Interface: InjectInfiniteQueryOptions7910+Defined in: [inject-infinite-query.ts:25](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L25)11+💡 Verification agent
🧩 Analysis chain
Fix repo link: points to a fork, will break after merge.
Update “Defined in” to the canonical TanStack repo (not arnoud-dv). Consider pinning to a commit or using a docs var to avoid future drift.
Apply:
-Defined in: [inject-infinite-query.ts:25](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L25) +Defined in: [inject-infinite-query.ts:25](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L25)Run to confirm the file and line exist in this PR branch:
🏁 Script executed:
#!/bin/bash set -euo pipefail # Locate file fd -a 'inject-infinite-query.ts' # Show context around expected lines fpath="$(fd -a 'inject-infinite-query.ts' | head -n1)" nl -ba "$fpath" | sed -n '20,40p'Length of output: 476
🏁 Script executed:
#!/bin/bash set -euo pipefail # Locate the file fpath=$(fd -a 'inject-infinite-query.ts' | head -n1) echo "File found at: $fpath" # Display lines 20-40 to verify the 'Defined in' reference sed -n '20,40p' "$fpath"Length of output: 1229
Fix “Defined in” link to point to the canonical TanStack repo File: docs/framework/angular/reference/interfaces/injectinfinitequeryoptions.md (lines 10–11)
-Defined in: [inject-infinite-query.ts:25](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L25) +Defined in: [inject-infinite-query.ts:25](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L25)Consider pinning to a specific commit or using a docs variable to prevent future drift.
📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [inject-infinite-query.ts:25](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-infinite-query.ts#L25)🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/injectinfinitequeryoptions.md around lines 10 to 11, the "Defined in" link currently points to the local repo path and should instead reference the canonical TanStack Query repository; update the URL to the corresponding file in the TanStack repo (preferably pinned to a specific commit SHA or use an existing docs variable/placeholder for the repo+commit) so the link remains stable and does not drift in future; ensure the new link points to the exact file path in the TanStack repo and replace the current local-github URL accordingly.✅ Addressed in commit a32e4c0
docs/framework/angular/reference/interfaces/injectismutatingoptions.md lines 10 to 11OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,5 +3,9 @@33 title: InjectIsMutatingOptions44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Interface: InjectIsMutatingOptions7910+Defined in: [inject-is-mutating.ts:13](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L13)11+⚠️ Potential issue
Fix “Defined in” links to TanStack (or pin SHA). Avoid fork URL; prevent rot.
Apply:
-Defined in: [inject-is-mutating.ts:13](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L13) +Defined in: [inject-is-mutating.ts:13](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L13) -Defined in: [inject-is-mutating.ts:19](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L19) +Defined in: [inject-is-mutating.ts:19](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-is-mutating.ts#L19)Also applies to: 20-21
🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/injectismutatingoptions.md around lines 10-11 (and also lines 20-21), the "Defined in" link points to the forked GitHub URL; replace it with the canonical TanStack repository link or a pinned commit SHA to prevent link rot—update the URL(s) to reference the upstream TanStack file path (or include the specific commit SHA) and ensure both occurrences (lines 10-11 and 20-21) use the same upstream/pinned URL format.✅ Addressed in commit a32e4c0
docs/framework/angular/reference/interfaces/injectmutationstateoptions.md lines 10 to 11OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,5 +3,9 @@33 title: InjectMutationStateOptions44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Interface: InjectMutationStateOptions7910+Defined in: [inject-mutation-state.ts:45](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L45)11+💡 Verification agent
🧩 Analysis chain
Fix “Defined in” links: point to canonical repo and pin to a commit
Links currently target a contributor fork; ship docs should reference the TanStack org and ideally a permalink (commit SHA) to avoid line drift.
Apply:
-Defined in: [inject-mutation-state.ts:45](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L45) +Defined in: [inject-mutation-state.ts:45](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L45) -Defined in: [inject-mutation-state.ts:51](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L51) +Defined in: [inject-mutation-state.ts:51](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L51)Optionally pin “blob/main” to the merge commit SHA.
Run to confirm line numbers and update if needed:
Also applies to: 20-21
🏁 Script executed:
#!/bin/bash # Verify source locations for interface and `injector` property. rg -n 'export interface\s+InjectMutationStateOptions' packages/angular-query-experimental/src/inject-mutation-state.ts -n -C2 rg -n 'injector:\s*Injector' packages/angular-query-experimental/src/inject-mutation-state.ts -n -C2Length of output: 366
🏁 Script executed:
#!/bin/bash # Display lines around interface definition to locate injector property sed -n '30,80p' packages/angular-query-experimental/src/inject-mutation-state.tsLength of output: 1825
Fix “Defined in” links in injectmutationstateoptions.md Replace
arnoud-dv/querywithTanStack/query(and optionally pinblob/mainto a specific commit SHA) in both occurrences (lines 10–11 and 20–21):-Defined in: [inject-mutation-state.ts:45](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L45) +Defined in: [inject-mutation-state.ts:45](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L45) -Defined in: [inject-mutation-state.ts:51](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L51) +Defined in: [inject-mutation-state.ts:51](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L51)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [inject-mutation-state.ts:45](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L45) Defined in: [inject-mutation-state.ts:51](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-mutation-state.ts#L51)🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/injectmutationstateoptions.md around lines 10–11 (and also update the second occurrence at lines 20–21), the "Defined in" links point to arnoud-dv/query; replace those repo paths with TanStack/query and optionally pin the blob/main path to a specific commit SHA (e.g. blob/<COMMIT_SHA>) so the URLs become https://github.com/TanStack/query/blob/<COMMIT_SHA>/packages/angular-query-experimental/src/inject-mutation-state.ts#L45 (or use blob/main if you choose not to pin).✅ Addressed in commit a32e4c0
@@ -3,5 +3,8 @@33 title: QueryFeature44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Interface: QueryFeature\<TFeatureKind\>7910+Defined in: [providers.ts:135](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L135)⚠️ Potential issue
Fix “Defined in” links pointing to a fork; use the canonical repo.
Links target arnoud-dv/query. For published docs, these should point to TanStack/query (or be repo-relative).
Apply this diff pattern to all affected links:
-Defined in: [providers.ts:135](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L135) +Defined in: [providers.ts:135](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L135)Consider updating the doc generator to source the org/repo from config to avoid future mismatches.
Also applies to: 26-26, 36-36
🤖 Prompt for AI Agents
In docs/framework/angular/reference/interfaces/queryfeature.md around line 10 (also fix similar occurrences at lines 26 and 36), the "Defined in" link points to the forked repo arnoud-dv/query; change the URL to the canonical repo (TanStack/query) or make it repo-relative (e.g., replace https://github.com/arnoud-dv/query/... with https://github.com/tanstack/query/... or a relative path) so published docs reference the correct upstream; apply the same replacement pattern to the other affected links and update the doc generator to read org/repo from config to prevent future mismatches.@@ -15,3 +17,5 @@1517 object1618 ```171920+Defined in: [types.ts:147](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L147)21+💡 Verification agent
🧩 Analysis chain
Fix “Defined in” link to canonical repo (avoid fork URL in published docs).
Current link targets arnoud-dv/query; change to TanStack/query to prevent broken/outdated references post-merge.
-Defined in: [types.ts:147](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L147) +Defined in: [types.ts:147](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L147)Run to find any remaining fork links:
🏁 Script executed:
#!/bin/bash rg -nP 'github\.com/(arnoud-dv|.*?/query/blob/)' docs/ packages/ | sed -n '1,200p'Length of output: 24131
Update “Defined in” links in Angular docs to use the canonical TanStack/query repo Multiple Markdown files under docs/framework/angular/reference still point to
github.com/arnoud-dv/query; all such URLs should be changed togithub.com/TanStack/queryto prevent broken or outdated references.🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/createbasemutationresult.md around lines 20 to 21, the "Defined in" link points to github.com/arnoud-dv/query; update that URL to the canonical repository github.com/TanStack/query so the reference is accurate and maintained across Angular docs; search other Markdown files under docs/framework/angular/reference for occurrences of github.com/arnoud-dv/query and replace them with github.com/TanStack/query to ensure all links use the canonical TanStack/query repo.docs/framework/angular/reference/type-aliases/createbasequeryresult.md lines 18 to 19OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -13,3 +15,5 @@1315 MapToSignals<OmitKeyof<TState, keyof BaseQueryNarrowing, 'safely'>>1416 ```151718+Defined in: [types.ts:97](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L97)19+⚠️ Potential issue
Fix “Defined in” link to TanStack (or pin SHA). Avoid fork URL; anchors drift.
Apply:
-Defined in: [types.ts:97](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L97) +Defined in: [types.ts:97](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L97)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [types.ts:97](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L97)🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/createbasequeryresult.md around lines 18 to 19, the "Defined in" link points to a forked repository which can drift; update the URL to reference the original TanStack repository (or pin a specific commit SHA) instead of the fork. Replace the current forked GitHub link with the upstream TanStack/query path or a permalink that includes the commit SHA so the anchor remains stable.✅ Addressed in commit a32e4c0
@@ -13,3 +15,5 @@1315 MapToSignals<InfiniteQueryObserverResult<TData, TError>>1416 ```151718+Defined in: [types.ts:116](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L116)19+💡 Verification agent
🧩 Analysis chain
Docs link points to contributor fork; target the upstream repo (and prefer a stable permalink).
Linking to arnoud-dv/query will be incorrect after merge; point to TanStack/query. Consider emitting a permalink (blob/#L116) from the generator to avoid line drift.
-Defined in: [types.ts:116](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L116) +Defined in: [packages/angular-query-experimental/src/types.ts:116](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L116)If your generator can access the commit SHA, emit:
- https://github.com/TanStack/query/blob//packages/angular-query-experimental/src/types.ts#L116
🏁 Script executed:
#!/bin/bash # Display lines 10–30 of the docs file to verify the existing link sed -n '10,30p' docs/framework/angular/reference/type-aliases/createinfinitequeryresult.mdLength of output: 453
Use upstream TanStack/query stable permalink Change the “Defined in” link to point at the TanStack/query repo instead of arnoud-dv’s fork. Prefer emitting a blob link with the commit SHA to prevent line-drift, e.g.: https://github.com/TanStack/query/blob//packages/angular-query-experimental/src/types.ts#L116
🤖 Prompt for AI Agents
docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md lines 18-19: the "Defined in" link currently points at arnoud-dv's fork; replace it with a blob link to the upstream TanStack/query repo including a specific commit SHA to avoid line-drift (format: https://github.com/TanStack/query/blob/<commit-sha>/packages/angular-query-experimental/src/types.ts#L116). Locate the appropriate commit SHA for the upstream source you want to reference (e.g., the release or main commit), update the URL accordingly, and ensure the markdown link text and target are both updated to the new upstream blob URL.@@ -3,10 +3,14 @@33 title: CreateMutateAsyncFunction44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Type Alias: CreateMutateAsyncFunction\<TData, TError, TVariables, TContext\>79810 ```ts911 type CreateMutateAsyncFunction<TData, TError, TVariables, TContext> =1012 MutateFunction<TData, TError, TVariables, TContext>1113 ```121415+Defined in: [types.ts:140](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L140)16+💡 Verification agent
❓ Verification inconclusive
Update source link to canonical repo and stabilize with a permalink. Replace arnoud-dv/query + branch link with TanStack/query + commit SHA.
Use a commit‐pinned TanStack/query permalink for types.ts In docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md (lines 15–16), replace the arnoud-dv/query main-branch URL with the TanStack/query URL pinned to the exact commit SHA for packages/angular-query-experimental/src/types.ts#L140.
🤖 Prompt for AI Agents
docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md lines 15-16: the current link points to arnoud-dv/query main branch; replace it with the TanStack/query repository permalink pinned to the exact commit SHA that contains packages/angular-query-experimental/src/types.ts so the reference is immutable. Locate the correct commit in the tanstack/query GitHub history that contains that file, copy the blob URL that includes the commit SHA and line fragment (e.g. .../blob/<COMMIT_SHA>/packages/angular-query-experimental/src/types.ts#L140), and update the Markdown link text and URL accordingly.docs/framework/angular/reference/type-aliases/createmutationresult.md line 16OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -11,3 +13,4 @@1113 MapToSignals<OmitKeyof<TState, keyof BaseMutationNarrowing, 'safely'>>1214 ```131516+Defined in: [types.ts:248](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L248)⚠️ Potential issue
Fix “Defined in” GitHub link to canonical repo (not contributor fork). Linking to arnoud-dv/query will be wrong post-merge. Point to TanStack/query (or use a permalink to the generating commit to avoid line-number drift).
Apply this diff:
-Defined in: [types.ts:248](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L248) +Defined in: [types.ts:248](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L248)Optional: prefer a commit permalink:
https://github.com/TanStack/query/blob/<commit>/packages/angular-query-experimental/src/types.ts#L248📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [types.ts:248](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L248)🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/createmutationresult.md around line 16, the "Defined in" GitHub link points to the contributor fork (arnoud-dv/query); update it to the canonical TanStack/query repository or, better, replace with a commit-permalink to the generating commit (https://github.com/TanStack/query/blob/<commit>/packages/angular-query-experimental/src/types.ts#L248) so the link remains correct and stable after merging.✅ Addressed in commit a32e4c0
docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md lines 18 to 19Outdated@@ -13,3 +15,5 @@1315 > = MapToSignals<TDefinedInfiniteQueryObserver>1416 ```151718+Defined in: [types.ts:122](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L122)19+💡 Verification agent
🧩 Analysis chain
Switch “Defined in” URL to TanStack/query and use a commit-pinned permalink. Avoid linking to a contributor fork or to main which can drift.
🏁 Script executed:
#!/bin/bash # Locate the markdown file file=$(fd -g definedcreateinfinitequeryresult.md docs) echo "Found file: $file" # Display lines 1-30 with line numbers nl -ba "$file" | sed -n '1,30p'Length of output: 534
🏁 Script executed:
#!/bin/bash file="docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md" echo "Displaying lines 1-30 of $file" cat -n "$file" | sed -n '1,30p'Length of output: 1304
Update “Defined in” link to the official TanStack/query repo with a commit‐pinned permalink (docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md:18). Replace the current
https://github.com/arnoud-dv/query/blob/main/...URL with a commit‐specific link topackages/angular-query-experimental/src/types.ts#L122in the TanStack/query repository to prevent drift. (github.com)🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md around lines 18 to 19, the "Defined in" link points to the forked repo (arnoud-dv) and is not commit-pinned; replace that URL with a commit-specific permalink to the TanStack/query repository pointing to packages/angular-query-experimental/src/types.ts#L122 (use the commit SHA in the URL) so the reference is canonical and immutable.docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md line 27OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -16,10 +18,10 @@1618 TQueryFnData,1719 TError,1820 TData,19- TQueryFnData,2021 TQueryKey,2122 TPageParam2223 > &2324 object2425 ```252627+Defined in: [infinite-query-options.ts:62](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L62)⚠️ Potential issue
Update “Defined in” link to canonical repo.
Swap arnoud-dv/query for TanStack/query (or generate relative links).
Apply this diff:
-Defined in: [infinite-query-options.ts:62](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L62) +Defined in: [infinite-query-options.ts:62](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L62)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [infinite-query-options.ts:62](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L62)🤖 Prompt for AI Agents
docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md around line 27: the "Defined in" link points to arnoud-dv/query; update the URL to the canonical TanStack repo or convert to a relative repo path. Replace the current link target (https://github.com/arnoud-dv/query/.../infinite-query-options.ts#L62) with the equivalent TanStack URL (https://github.com/tanstack/query/.../infinite-query-options.ts#L62) or change it to a relative link that resolves correctly within this repository so the file reference points to the canonical source.✅ Addressed in commit a32e4c0
docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md lines 14 to 15OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -3,9 +3,13 @@33 title: PersistQueryClientFeature44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Type Alias: PersistQueryClientFeature79810 ```ts911 type PersistQueryClientFeature = QueryFeature<'PersistQueryClient'>1012 ```111314+Defined in: [providers.ts:164](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L164)15+💡 Verification agent
❓ Verification inconclusive
Fix source link to canonical repo and pin to a commit
The “Defined in” URL targets a contributor fork (arnoud-dv/query). After merge, this will be incorrect and could rot. Point to TanStack/query and, ideally, pin to the commit SHA to avoid line-drift.
Apply:
-Defined in: [providers.ts:164](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L164) +Defined in: [providers.ts:164](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L164)Optional (better): replace “main” with the merge commit SHA once available:
-.../blob/main/... +.../blob/<COMMIT_SHA>/...Run to catch any other fork links:
🏁 Script executed:
#!/bin/bash # Find non-canonical GitHub links in docs rg -nI "github\.com/(?!TanStack/query)\w+\/query" docs || true # Find “blob/main” links that should be pinned rg -nI "github\.com/TanStack/query/.*/blob/main/" docs || trueLength of output: 383
🏁 Script executed:
#!/bin/bash # Find non-canonical GitHub links in docs (exclude TanStack/query) rg -nI 'github\.com/[^/]\+/query' docs | grep -v 'github\.com/TanStack/query' || true # Find “blob/main” links that should be pinned to a commit rg -nI 'github\.com/TanStack/query/.*/blob/main/' docs || trueLength of output: 150
Update source link to canonical repo and pin to commit SHA Replace the “Defined in” URL to use TanStack/query instead of arnoud-dv/query; after merge, update the
mainsegment to the merge commit SHA to prevent line-drift.-Defined in: [providers.ts:164](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L164) +Defined in: [providers.ts:164](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L164)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [providers.ts:164](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/providers.ts#L164)🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md around lines 14 to 15, update the "Defined in" source link to point to the canonical TanStack/query repository and pin it to the merge commit SHA: replace the current arnoud-dv/query URL with the equivalent file path in github.com/tanstack/query and change the branch segment (currently "main") to the exact merge commit SHA after this PR is merged so the link stays stable and line numbers won't drift.✅ Addressed in commit a32e4c0
@@ -35,3 +37,4 @@3537 : QueryObserverOptionsForCreateQueries[]3638 ```373940+Defined in: [inject-queries.ts:120](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L120)💡 Verification agent
🧩 Analysis chain
Fix: “Defined in” link points to a contributor fork, not the TanStack repo.
This will confuse users and break canonical navigation in published docs.
Apply:
-Defined in: [inject-queries.ts:120](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L120) +Defined in: [inject-queries.ts:120](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/inject-queries.ts#L120)Scan for other stray fork links:
🏁 Script executed:
#!/bin/bash rg -n "github\.com/arnoud-dv/query" docs packages || trueLength of output: 15530
Replace all “Defined in” links to use the TanStack repo Every docs/framework/angular/reference file currently points to github.com/arnoud-dv/query; update each
https://github.com/arnoud-dv/query/blob/main/...URL tohttps://github.com/TanStack/query/blob/main/...to restore canonical navigation.🤖 Prompt for AI Agents
docs/framework/angular/reference/type-aliases/queriesoptions.md around line 40: the "Defined in" link points to github.com/arnoud-dv/query; update the URL to use the TanStack canonical repo by replacing the prefix "https://github.com/arnoud-dv/query/blob/main/" with "https://github.com/TanStack/query/blob/main/" for this link (and perform the same replacement for any other "Defined in" links in this file or other docs/framework/angular/reference files to ensure all references point to the TanStack repo).@@ -3,9 +3,13 @@33 title: QueryFeatures44 ---556+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Type Alias: QueryFeatures79810 ```ts911 type QueryFeatures = DeveloperToolsFeature | PersistQueryClientFeature1012 ```111314+Defined in: [providers.ts:173](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/providers.ts#L173)15+💡 Verification agent
🧩 Analysis chain
Doc link points to author’s fork; switch to canonical repo before merge.
The “Defined in” URL uses
arnoud-dv/query. Post-merge this will be wrong. Regenerate docs to link toTanStack/query(or use a repo slug in the generator config).
🏁 Script executed:
#!/bin/bash # Find any docs still linking to the fork rather than the canonical repo rg -n "github\.com/arnoud-dv/query" docsLength of output: 15521
Canonical repo slug misconfigured in generated docs
The “Defined in” links across many files still point to
github.com/arnoud-dv/query. Update the docs-generator’s repo slug toTanStack/queryand regenerate the documentation to correct all affected links.🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/queryfeatures.md around lines 14 to 15, the generated "Defined in" link uses the wrong GitHub repo slug (github.com/arnoud-dv/query); update the docs-generator configuration to use the correct repo slug "TanStack/query" and then regenerate the docs so all "Defined in" links point to https://github.com/TanStack/query with correct file paths.docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md lines 30 to 31Outdated@@ -26,3 +27,5 @@2627 object2728 ```282930+Defined in: [infinite-query-options.ts:34](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L34)31+💡 Verification agent
❓ Verification inconclusive
Fix “Defined in” GitHub link to canonical repo
The link points to the contributor fork. This will break post-merge and harms docs credibility. Point to TanStack/query and adjust the generator so future autogeneration uses the canonical repo.
Apply this doc-only patch now (and fix the generator config to avoid re-introducing the fork URL):
-Defined in: [infinite-query-options.ts:34](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L34) +Defined in: [infinite-query-options.ts:34](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L34)
Fix “Defined in” link to canonical TanStack/query repo In docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md, update the “Defined in” link to point at TanStack/query instead of the contributor fork, and adjust the docs generator to use the canonical repo URL going forward.
-Defined in: [infinite-query-options.ts:34](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L34) +Defined in: [infinite-query-options.ts:34](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L34)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [infinite-query-options.ts:34](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/infinite-query-options.ts#L34)🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md around lines 30-31, the "Defined in" link points to a contributor fork; update the URL to the canonical TanStack/query repo path for infinite-query-options.ts (replace the forked GitHub URL with https://github.com/TanStack/query/blob/main/.../infinite-query-options.ts#L34). Also modify the docs generator configuration/template used to render "Defined in" links so it uses the canonical repo base (https://github.com/TanStack/query) instead of the contributor fork for future generated files.docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md lines 18 to 19OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -13,3 +15,5 @@1315 object1416 ```151718+Defined in: [query-options.ts:25](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L25)19+🛠️ Refactor suggestion
⚠️ Potential issue
Broken/incorrect source link: points to contributor fork; pin to upstream commit
The “Defined in” URL targets arnoud-dv/query instead of TanStack/query and may drift on main. Point to the upstream repo and (ideally) a specific commit to keep the line anchor stable.
Apply now (temporary) and consider regenerating with a pinned SHA:
-Defined in: [query-options.ts:25](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L25) +Defined in: [query-options.ts:25](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L25)Follow-up (generator/template): use a repo base like https://github.com/TanStack/query and inject the current commit SHA (e.g., GITHUB_SHA) for permalinks.
📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
Defined in: [query-options.ts:25](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/query-options.ts#L25)🤖 Prompt for AI Agents
In docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md around lines 18-19, the "Defined in" link points to arnoud-dv/query; update it to the upstream TanStack/query permalink by replacing the URL with https://github.com/TanStack/query/blob/<COMMIT_SHA>/packages/angular-query-experimental/src/query-options.ts#L25 (use the current upstream commit SHA for <COMMIT_SHA> to pin the line), and for the generator/template change ensure the repo base is https://github.com/TanStack/query and inject the CI commit SHA (e.g., GITHUB_SHA) when building permalinks.✅ Addressed in commits a32e4c0 to c18e6c2
packages/angular-query-experimental/src/devtools/production/index.ts line 1Resolvedby arnoud-dv(GitHub profile, opens in a new tab)@@ -0,0 +1 @@1+export * from '..'💡 Verification agent
🧩 Analysis chain
Production entry should re-export stubs, not the full devtools.
Re-exporting from '..' likely pulls in the full implementation and undermines #9078 (tree-shaking/extra chunks). Point this entry at the stub module (or equivalent) instead.
Proposed change (adjust path to your actual stub location):
-export * from '..' +export * from '../stub'Please confirm package.json "exports" for "/devtools/production" maps to this file and that a stub module exists and matches the public types.
🏁 Script executed:
#!/bin/bash set -e echo "=== Production entry ===" if [ -f packages/angular-query-experimental/src/devtools/production/index.ts ]; then sed -n '1,50p' packages/angular-query-experimental/src/devtools/production/index.ts else echo "File not found: packages/angular-query-experimental/src/devtools/production/index.ts" fi echo -e "\n=== Stub files in devtools dir ===" find packages/angular-query-experimental/src/devtools -type f | grep -i stub || echo "No stub files found under src/devtools" echo -e "\n=== package.json exports ===" if [ -f packages/angular-query-experimental/package.json ]; then sed -n '1,200p' packages/angular-query-experimental/package.json | sed -e 's/^/ /g' else echo "File not found: packages/angular-query-experimental/package.json" fiLength of output: 4737
🏁 Script executed:
#!/bin/bash set -e echo "=== stub.ts ===" if [ -f packages/angular-query-experimental/src/devtools/stub.ts ]; then sed -n '1,200p' packages/angular-query-experimental/src/devtools/stub.ts else echo "File not found: packages/angular-query-experimental/src/devtools/stub.ts" fi echo -e "\n=== index.ts ===" if [ -f packages/angular-query-experimental/src/devtools/index.ts ]; then sed -n '1,200p' packages/angular-query-experimental/src/devtools/index.ts else echo "File not found: packages/angular-query-experimental/src/devtools/index.ts" fiLength of output: 738
Export stub in production entry and update package export mapping
- In packages/angular-query-experimental/src/devtools/production/index.ts, change
-export * from '..' +export * from '../stub' - In packages/angular-query-experimental/package.json, update the
exports["./devtools/production"].defaultfrom
to"./dist/devtools/index.mjs"
so production builds re-export the stub instead of the full devtools."./dist/devtools/stub.mjs"
🤖 Prompt for AI Agents
packages/angular-query-experimental/src/devtools/production/index.ts line 1: currently re-exports the full devtools; replace this export with a production stub re-export (point to the stub module) so production bundles don't include devtools; then update packages/angular-query-experimental/package.json exports["./devtools/production"].default from "./dist/devtools/index.mjs" to "./dist/devtools/stub.mjs" to map the production entry to the stub.packages/angular-query-experimental/src/inject-is-restoring.ts lines 13 to 16Resolvedby arnoud-dv(GitHub profile, opens in a new tab)@@ -9,16 +9,8 @@9910-const IS_RESTORING = new InjectionToken(11- typeof ngDevMode === 'undefined' || ngDevMode12- ? 'TANSTACK_QUERY_IS_RESTORING'13- : '',14- {15- // Default value when not provided16- factory: () => signal(false).asReadonly(),17- },18-)19-2010 /**21- * The `Injector` in which to create the isRestoring signal.22- *23- * If this is not provided, the current injection context will be used instead (via `inject`).11+ * Internal token used to track isRestoring state, accessible in public API through `injectIsRestoring` and set via `provideIsRestoring`2412 */13+const IS_RESTORING = new InjectionToken('', {14+ // Default value when not provided15+ factory: () => signal(false).asReadonly(),16+})🛠️ Refactor suggestion
Type the token and provide a stable, descriptive name (consider root provisioning).
Without a generic,
IS_RESTORINGbecomesInjectionToken<unknown>, which degrades the exported return type ofinjectIsRestoringin the.d.ts. Also, an empty description hurts DI error messages. Suggest:-const IS_RESTORING = new InjectionToken('', { - // Default value when not provided - factory: () => signal(false).asReadonly(), -}) +const IS_RESTORING = new InjectionToken<Signal<boolean>>('tanstack.isRestoring', { + providedIn: 'root', + factory: () => signal(false).asReadonly(), +})📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
// packages/angular-query-experimental/src/inject-is-restoring.ts const IS_RESTORING = new InjectionToken<Signal<boolean>>( 'tanstack.isRestoring', { providedIn: 'root', factory: () => signal(false).asReadonly(), }, )🤖 Prompt for AI Agents
In packages/angular-query-experimental/src/inject-is-restoring.ts around lines 13 to 16, the InjectionToken is untyped and has an empty description which makes it InjectionToken<unknown> and yields poor DI error messages; change it to InjectionToken<ReadonlySignal<boolean>> (or InjectionToken<boolean> if you prefer to expose a boolean) with a stable, descriptive string name (e.g. 'AngularQueryExperimental.IS_RESTORING') and add providedIn: 'root' (if you want root provisioning), and ensure the factory returns signal(false).asReadonly() so the exported injectIsRestoring type is correct and stable in .d.ts outputs.Review continued from previous batch...
@@ -172,5 +172,5 @@172172173173 #### injectInfiniteQueryFn174174175-() => [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryFnData`, `TQueryKey`, `TPageParam`\>175+() => [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)\<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`\>176176💡 Verification agent
🧩 Analysis chain
Validate 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 In docs/framework/angular/reference/functions/injectinfinitequery.md (at lines 175–176), update the link to the interface’s actual location under
reference/interfaces:- [`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md) + [`CreateInfiniteQueryOptions`](../interfaces/createinfinitequeryoptions.md)📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
() => [`CreateInfiniteQueryOptions`](../interfaces/createinfinitequeryoptions.md)<`TQueryFnData`, `TError`, `TData`, `TQueryKey`, `TPageParam`>🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/injectinfinitequery.md around lines 175-176, the relative link to CreateInfiniteQueryOptions is incorrect (uses ../../interfaces/...); update the link to point to the actual interface location under reference/interfaces by changing the path to ../interfaces/createinfinitequeryoptions.md while preserving the link label and type parameters.Actionable comments posted: 1
♻️ Duplicate comments (6)
docs/framework/angular/reference/type-aliases/createmutationresult.md (1)
16-17: Use a commit permalink for “Defined in” to avoid drift on main.Line numbers on
mainare unstable. Link to a specific commit produced by the docs generator.-Defined in: [types.ts:259](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L259) +Defined in: [types.ts:259](https://github.com/TanStack/query/blob/<commit>/packages/angular-query-experimental/src/types.ts#L259)If your generator can inject the commit hash, replace
<commit>with that value at build time.docs/framework/angular/reference/functions/provideangularquery.md (1)
14-14: Canonical repo link looks good.Previous issue about pointing to a fork is resolved.
docs/framework/angular/reference/functions/mutationoptions.md (1)
52-53: Drop fragile line anchors from “Defined in” links.Anchors drift as files change. Link to the file path only. This echoes the prior review on similar links.
-Defined in: [mutation-options.ts:34](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L34) +Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)-Defined in: [mutation-options.ts:48](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L48) +Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)If this page is generated, update the template to omit line anchors globally.
Also applies to: 122-123
docs/framework/angular/reference/functions/infinitequeryoptions.md (3)
68-69: Fix path: CreateInfiniteQueryOptions lives under type-aliases, not interfaces.Update link target to avoid 404/inconsistency.
-[`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)<TQueryFnData, TError, TData, TQueryKey, TPageParam> & `object` & `object` +[`CreateInfiniteQueryOptions`](../../type-aliases/createinfinitequeryoptions.md)<TQueryFnData, TError, TData, TQueryKey, TPageParam> & `object` & `object`
131-133: Fix path: CreateInfiniteQueryOptions link should target type-aliases.-`OmitKeyof`<[`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)<TQueryFnData, TError, TData, TQueryKey, TPageParam>, `"queryFn"`> & `object` & `object` +`OmitKeyof`<[`CreateInfiniteQueryOptions`](../../type-aliases/createinfinitequeryoptions.md)<TQueryFnData, TError, TData, TQueryKey, TPageParam>, `"queryFn"`> & `object` & `object`
191-193: Fix path: CreateInfiniteQueryOptions link should target type-aliases.-[`CreateInfiniteQueryOptions`](../../interfaces/createinfinitequeryoptions.md)<TQueryFnData, TError, TData, TQueryKey, TPageParam> & `object` & `object` +[`CreateInfiniteQueryOptions`](../../type-aliases/createinfinitequeryoptions.md)<TQueryFnData, TError, TData, TQueryKey, TPageParam> & `object` & `object`🧹 Nitpick comments (20)
docs/framework/angular/reference/type-aliases/createmutationresult.md (1)
6-7: Prefer a visible admonition over a hidden HTML comment for the autogeneration notice.Makes the guidance obvious to contributors browsing the docs site, and can point them to the true source-of-truth file.
-<!-- DO NOT EDIT: this page is autogenerated from the type comments --> +:::note +This page is autogenerated from source code comments. To propose changes, edit +`packages/angular-query-experimental/src/types.ts` and re-run the docs generator. +:::docs/framework/angular/reference/functions/provideangularquery.md (6)
36-36: Fix MD034: replace bare URL with a labeled link.Improves readability and satisfies markdownlint.
-https://tanstack.com/query/v5/docs/framework/angular/quick-start +[Angular quick start](https://tanstack.com/query/v5/docs/framework/angular/quick-start)
10-12: Show parameter type in the signature block for clarity.Keeps the snippet consistent with the typed sections below.
```ts -function provideAngularQuery(queryClient): Provider[] +function provideAngularQuery(queryClient: QueryClient): Provider[]--- `16-19`: **Tighten wording.** Minor grammar/style improvements. ```diff -Sets up providers necessary to enable TanStack Query functionality for Angular applications. - -Allows to configure a `QueryClient`. +Configure the Angular providers required to enable TanStack Query. + +Allows configuring a `QueryClient`.
30-33: Consistent type formatting and clearer return description.-`Provider`[] - -A set of providers to set up TanStack Query. +`Provider[]` + +An array of providers to set up TanStack Query.
1-4: Optional: add a deprecated badge via frontmatter (if supported).If your docs site renders a deprecation badge from frontmatter, set it here.
--- id: provideAngularQuery title: provideAngularQuery +deprecated: true ---
14-14: Use a permalink to a specific commit to avoid line-number drift.Linking to main with a line anchor can rot as files change. Prefer a blob URL pinned to the commit that generated these docs.
docs/framework/angular/reference/interfaces/queryfeature.md (2)
16-16: Type parameter constraint now references the symbol directly — LGTM.If a doc page exists for QueryFeatureKind, consider linking it; otherwise this is fine.
10-11: Pin "Defined in" links to commit SHAs or release tags (don’t link tomain). Linking to the main branch is brittle for versioned docs — update the doc generator to emit GitHub permalinks (commit SHA or release tag) for the "Defined in" links. Affected example: docs/framework/angular/reference/interfaces/queryfeature.md (lines 10–11, 26, 36) and many other entries under docs/framework/*.docs/framework/angular/reference/functions/mutationoptions.md (6)
12-13: Use proper headings instead of bold for “Example”.Switching to headings both improves structure and fixes MD036 (no-emphasis-as-heading).
-**Example** +### Example(Repeat the same replacement for the second occurrence.)
Also applies to: 126-127
41-41: Disambiguate duplicate “Call Signature” headings.Unique headings avoid MD024 (duplicate heading) and make overloads clearer.
-## Call Signature +## Call Signature (with mutationKey)-## Call Signature +## Call Signature (without mutationKey)Also applies to: 111-111
37-40: Remove stray “Param” sections (redundant).These duplicate the detailed “Parameters” sections below and add noise.
-## Param - -The mutation options. - +<!-- removed: redundant summary -->(Apply to all three occurrences.)
Also applies to: 107-110, 177-179
103-106: Deduplicate trailing “Mutation options.” lines.These duplicates are likely a generator artifact and trip readers.
Mutation options. - -Mutation options. -(Apply to both overload sections.)
Also applies to: 173-176
10-35: Consolidate repeated example blocks or label them per overload.The same example appears three times; either keep one “Example” above and reference it, or label them “Example (with mutationKey)” and “Example (without mutationKey)” to avoid redundancy.
If autogenerated, I can help adjust the generator to emit a single example and headings keyed to overloads. Want me to open a follow-up?
Also applies to: 54-80, 124-150
81-101: Heading level consistency within overload sections.Consider using a consistent hierarchy per overload:
- H3: Type Parameters
- H3: Parameters
- H3: Returns
Right now sections mix H2/H3 and include stray “Param” blocks.
I can provide a batch diff once you confirm the preferred heading scheme for API pages.
Also applies to: 151-171
docs/framework/angular/reference/functions/infinitequeryoptions.md (5)
29-37: Remove spurious& object & objectfrom return type.This looks like generator noise; it adds no information and harms readability.
Apply:
> & - object & - object
89-101: Two issues: (1) OmitKeyof block readability; (2) trailing& object & object.- Consider linking OmitKeyof if documented; otherwise keep as code span.
- Drop the redundant
& object & object.
): OmitKeyof< CreateInfiniteQueryOptions< TQueryFnData, TError, TData, TQueryKey, TPageParam >, 'queryFn' > & - object & - object + // (no additional intersections)If an OmitKeyof doc exists, prefer:
-): OmitKeyof< +): [`OmitKeyof`](../../type-aliases/omitkeyof.md)<
152-160: Remove duplicate& object & objectintersection.Same generator artifact as above.
> & - object & - object
70-73: Deduplicate repeated sentence in Returns.“The tagged infinite query options.” appears twice in each block.
-The tagged infinite query options. The tagged infinite query options.Also applies to: 133-135, 193-195
14-17: Normalize headings: use “Parameters” consistently (not “Param”).Unify section headings to improve TOC and searchability.
Occurrences found:
- docs/framework/angular/reference/functions/queryoptions.md — lines 28, 88, 151, 209
- docs/framework/angular/reference/functions/mutationoptions.md — lines 37, 107, 177
- docs/framework/angular/reference/functions/injectquery.md — lines 43, 47, 131, 135, 223, 227, 315, 319
- docs/framework/angular/reference/functions/injectinfinitequery.md — lines 13, 17, 75, 79, 134, 138, 193, 197
- docs/framework/angular/reference/functions/infinitequeryoptions.md — lines 14, 74, 137, 197
Diff suggestion (apply to ## and ### headings):
-## Param +## Parameters -### Param +### Parameters📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between d6d621eeb63da486e8e27cc98f045a4ba5f2ff62 and c18e6c24b4ec13205de581363876808ada9d6c58.
📒 Files selected for processing (50)
docs/framework/angular/reference/functions/infinitequeryoptions.md(7 hunks)docs/framework/angular/reference/functions/injectinfinitequery.md(5 hunks)docs/framework/angular/reference/functions/injectisfetching.md(1 hunks)docs/framework/angular/reference/functions/injectismutating.md(1 hunks)docs/framework/angular/reference/functions/injectisrestoring.md(2 hunks)docs/framework/angular/reference/functions/injectmutation.md(2 hunks)docs/framework/angular/reference/functions/injectmutationstate.md(2 hunks)docs/framework/angular/reference/functions/injectqueries.md(1 hunks)docs/framework/angular/reference/functions/injectquery.md(4 hunks)docs/framework/angular/reference/functions/injectqueryclient.md(1 hunks)docs/framework/angular/reference/functions/mutationoptions.md(3 hunks)docs/framework/angular/reference/functions/provideangularquery.md(1 hunks)docs/framework/angular/reference/functions/provideisrestoring.md(1 hunks)docs/framework/angular/reference/functions/providequeryclient.md(1 hunks)docs/framework/angular/reference/functions/providetanstackquery.md(2 hunks)docs/framework/angular/reference/functions/queryfeature.md(1 hunks)docs/framework/angular/reference/functions/queryoptions.md(7 hunks)docs/framework/angular/reference/interfaces/basemutationnarrowing.md(5 hunks)docs/framework/angular/reference/interfaces/basequerynarrowing.md(4 hunks)docs/framework/angular/reference/interfaces/createbasequeryoptions.md(1 hunks)docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md(1 hunks)docs/framework/angular/reference/interfaces/createmutationoptions.md(1 hunks)docs/framework/angular/reference/interfaces/createqueryoptions.md(1 hunks)docs/framework/angular/reference/interfaces/injectinfinitequeryoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectisfetchingoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectismutatingoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectmutationoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectmutationstateoptions.md(2 hunks)docs/framework/angular/reference/interfaces/injectqueryoptions.md(2 hunks)docs/framework/angular/reference/interfaces/queryfeature.md(3 hunks)docs/framework/angular/reference/type-aliases/createbasemutationresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createbasequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md(1 hunks)docs/framework/angular/reference/type-aliases/createmutatefunction.md(2 hunks)docs/framework/angular/reference/type-aliases/createmutationresult.md(2 hunks)docs/framework/angular/reference/type-aliases/createqueryresult.md(1 hunks)docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md(2 hunks)docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/developertoolsfeature.md(1 hunks)docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md(1 hunks)docs/framework/angular/reference/type-aliases/queriesoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/queriesresults.md(2 hunks)docs/framework/angular/reference/type-aliases/queryfeatures.md(1 hunks)docs/framework/angular/reference/type-aliases/undefinedinitialdatainfiniteoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md(1 hunks)docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md(2 hunks)docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md(2 hunks)
✅ Files skipped from review due to trivial changes (12)
- docs/framework/angular/reference/type-aliases/createbasemutationresult.md
- docs/framework/angular/reference/interfaces/injectmutationstateoptions.md
- docs/framework/angular/reference/functions/injectismutating.md
- docs/framework/angular/reference/functions/injectisfetching.md
- docs/framework/angular/reference/functions/provideisrestoring.md
- docs/framework/angular/reference/functions/providequeryclient.md
- docs/framework/angular/reference/type-aliases/unusedskiptokenoptions.md
- docs/framework/angular/reference/interfaces/injectisfetchingoptions.md
- docs/framework/angular/reference/type-aliases/undefinedinitialdataoptions.md
- docs/framework/angular/reference/type-aliases/persistqueryclientfeature.md
- docs/framework/angular/reference/functions/injectquery.md
- docs/framework/angular/reference/interfaces/injectinfinitequeryoptions.md
🚧 Files skipped from review as they are similar to previous changes (32)
- docs/framework/angular/reference/type-aliases/queryfeatures.md
- docs/framework/angular/reference/functions/injectmutation.md
- docs/framework/angular/reference/interfaces/injectmutationoptions.md
- docs/framework/angular/reference/type-aliases/developertoolsfeature.md
- docs/framework/angular/reference/functions/injectmutationstate.md
- docs/framework/angular/reference/type-aliases/definedcreatequeryresult.md
- docs/framework/angular/reference/type-aliases/definedcreateinfinitequeryresult.md
- docs/framework/angular/reference/type-aliases/queriesoptions.md
- docs/framework/angular/reference/interfaces/injectqueryoptions.md
- docs/framework/angular/reference/type-aliases/createmutatefunction.md
- docs/framework/angular/reference/functions/queryfeature.md
- docs/framework/angular/reference/functions/injectisrestoring.md
- docs/framework/angular/reference/functions/providetanstackquery.md
- docs/framework/angular/reference/type-aliases/createinfinitequeryresult.md
- docs/framework/angular/reference/interfaces/injectismutatingoptions.md
- docs/framework/angular/reference/interfaces/createinfinitequeryoptions.md
- docs/framework/angular/reference/type-aliases/definedinitialdataoptions.md
- docs/framework/angular/reference/interfaces/createmutationoptions.md
- docs/framework/angular/reference/interfaces/basemutationnarrowing.md
- docs/framework/angular/reference/type-aliases/createmutateasyncfunction.md
- docs/framework/angular/reference/type-aliases/createqueryresult.md
- docs/framework/angular/reference/interfaces/createqueryoptions.md
- docs/framework/angular/reference/type-aliases/undefinedinitialdatainfiniteoptions.md
- docs/framework/angular/reference/functions/injectqueryclient.md
- docs/framework/angular/reference/interfaces/basequerynarrowing.md
- docs/framework/angular/reference/type-aliases/unusedskiptokeninfiniteoptions.md
- docs/framework/angular/reference/type-aliases/definedinitialdatainfiniteoptions.md
- docs/framework/angular/reference/functions/injectqueries.md
- docs/framework/angular/reference/functions/queryoptions.md
- docs/framework/angular/reference/functions/injectinfinitequery.md
- docs/framework/angular/reference/type-aliases/queriesresults.md
- docs/framework/angular/reference/type-aliases/createbasequeryresult.md
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/framework/angular/reference/functions/mutationoptions.md
12-12: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
111-111: Multiple headings with the same content
(MD024, no-duplicate-heading)
126-126: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
docs/framework/angular/reference/functions/provideangularquery.md
36-36: Bare URL used
(MD034, no-bare-urls)
🔇 Additional comments (9)
docs/framework/angular/reference/interfaces/createbasequeryoptions.md (2)
6-7: LGTM: Autogenerated notice is correctly placed.The HTML comment won’t render and sits after the frontmatter, so it won’t break Docusaurus parsing.
10-11: Use a permalink and anchor the symbol (avoid fragile line numbers).Don't link to main with a hardcoded L21 — link to the exact commit and, if possible, the CreateBaseQueryOptions symbol. Verification: the suggested script produced no output / couldn't locate packages/angular-query-experimental/types.ts in the checked-out repo — manual verification required.
docs/framework/angular/reference/interfaces/queryfeature.md (1)
6-7: Autogenerated notice — good.Clear and helpful to avoid manual edits.
docs/framework/angular/reference/functions/mutationoptions.md (2)
6-7: LGTM: Autogenerated notice is appropriate.No action needed.
30-35: Replacenew Signal(...)withsignal(...)across docsdocs/framework/angular/reference/functions/mutationoptions.md (lines 30–35): change
idSignal = new Signal(0)→idSignal = signal(0). Scan the docs fornew Signal(and update occurrences; automated grep returned no matches, so manual verification required.docs/framework/angular/reference/functions/infinitequeryoptions.md (4)
40-41: Fixed: repo owner points to TanStack.“Defined in” now links to the canonical repo. LGTM.
103-104: Fixed: repo owner points to TanStack.Link target is correct. LGTM.
163-164: Fixed: repo owner points to TanStack.All “Defined in” links for this page now use the canonical repo. LGTM.
6-7: Keep the autogenerated notice; verify presence across Angular reference pagesEnsure the exact banner appears on all related function/type docs to prevent manual edits.
Automated search produced no results — run locally and list matching files: rg -n --color=never -F '' docs/framework/angular/reference | awk -F: '{print $1}' | sort -u
@@ -7,0 +15,21 @@15+export class QueriesService {16+ private http = inject(HttpClient)17+18+ updatePost(id: number) {19+ return mutationOptions({20+ mutationFn: (post: Post) => Promise.resolve(post),21+ mutationKey: ['updatePost', id],22+ onSuccess: (newPost) => {23+ // ^? newPost: Post24+ this.queryClient.setQueryData(['posts', id], newPost)25+ },26+ })27+ }28+}29+30+queries = inject(QueriesService)31+idSignal = new Signal(0)32+mutation = injectMutation(() => this.queries.updatePost(this.idSignal()))33+34+mutation.mutate({ title: 'New Title' })35+```⚠️ Potential issue
Fix Angular Signals usage and top-level inject snippet.
Angular signals are created via the signal(...) function (not new Signal), and top-level variables should be const. Also drop this. in the top-level example.
Apply:
-queries = inject(QueriesService) -idSignal = new Signal(0) -mutation = injectMutation(() => this.queries.updatePost(this.idSignal())) - -mutation.mutate({ title: 'New Title' }) +const queries = inject(QueriesService) +const id = signal(0) +const mutation = injectMutation(() => queries.updatePost(id())) +mutation.mutate({ title: 'New Title' })Optionally, show imports for clarity at the start of the code block:
import { inject, signal } from '@angular/core'🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/mutationoptions.md around lines 30 to 35, fix the top-level Angular Signals and inject usage: declare top-level variables with const, replace the incorrect new Signal(0) with signal(0), remove the unnecessary this. from the top-level injectMutation callback so it references the top-level queries and idSignal (e.g., injectMutation(() => queries.updatePost(idSignal()))), and optionally add an import note to show import { inject, signal } from '@angular/core' at the top of the example.Actionable comments posted: 1
♻️ Duplicate comments (2)
docs/framework/angular/reference/functions/mutationoptions.md (2)
56-57: Drop fragile line anchors from “Defined in” links.Anchor
#L38will drift; link to the file path only. This mirrors an earlier review on similar links.-Defined in: [mutation-options.ts:38](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L38) +Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)
130-131: Drop fragile line anchors from the second “Defined in” link.-Defined in: [mutation-options.ts:52](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts#L52) +Defined in: [mutation-options.ts](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/mutation-options.ts)🧹 Nitpick comments (10)
docs/framework/angular/reference/functions/mutationoptions.md (10)
12-13: Use a heading for “Example” to satisfy markdownlint (MD036).-**Example** +### Example
48-54: Render parameter type inline in the call signature.The parameter
optionsis printed untyped; show its type inside the signature for clarity.function mutationOptions<TData, TError, TVariables, TContext>( - options, -): WithRequired< - CreateMutationOptions<TData, TError, TVariables, TContext>, - 'mutationKey' -> + options: WithRequired< + CreateMutationOptions<TData, TError, TVariables, TContext>, + 'mutationKey' + > +): WithRequired< + CreateMutationOptions<TData, TError, TVariables, TContext>, + 'mutationKey' +>
78-86: Optional: consolidate the repeated example or add imports for reader clarity.This block duplicates the prior example; either reference the earlier example (“see Example above”) or add imports at the top of the code block for completeness.
89-107: Headings/readability: prefer “Parameters” once; avoid repetition.You have “## Param” earlier and “### Parameters” here. Use a single “## Parameters” section and keep the nested “#### options” under it.
-## Param +## Parameters
111-113: Remove duplicate sentence.“Mutation options.” appears twice.
Mutation options. - -Mutation options.
119-121: Avoid duplicate H2 titles (MD024).Rename the second “Call Signature” heading to distinguish overloads.
-## Call Signature +## Call Signature (overload 2)
121-128: Render parameter type inline in overload 2 signature.-function mutationOptions<TData, TError, TVariables, TContext>( - options, -): Omit< +function mutationOptions<TData, TError, TVariables, TContext>( + options: Omit< CreateMutationOptions<TData, TError, TVariables, TContext>, 'mutationKey' -> + > +): Omit< + CreateMutationOptions<TData, TError, TVariables, TContext>, + 'mutationKey' +>
134-136: Use a heading for “Example” (MD036).-**Example** +### Example
185-188: Remove duplicate sentence in overload 2.Mutation options. - -Mutation options.
189-191: Remove redundant “### Param” subsection.This repeats the earlier “Parameters” section and adds no new info.
-### Param - -The mutation options.📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between c18e6c24b4ec13205de581363876808ada9d6c58 and 7f8a863c7e80394e9854b9cc77f24cd60b7cddb5.
📒 Files selected for processing (2)
docs/framework/angular/reference/functions/mutationoptions.md(3 hunks)packages/angular-query-experimental/src/mutation-options.ts(2 hunks)
✅ Files skipped from review due to trivial changes (1)
- packages/angular-query-experimental/src/mutation-options.ts
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docs/framework/angular/reference/functions/mutationoptions.md
12-12: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
119-119: Multiple headings with the same content
(MD024, no-duplicate-heading)
134-134: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Preview
- GitHub Check: Test
@@ -6,2 +6,21 @@6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->7+68 # Function: mutationOptions()7910+Allows to share and re-use mutation options in a type-safe way.11+12+**Example**13+14+```ts15+export class QueriesService {16+ private http = inject(HttpClient)17+18+ updatePost(id: number) {19+ return mutationOptions({20+ mutationFn: (post: Post) => Promise.resolve(post),21+ mutationKey: ['updatePost', id],22+ onSuccess: (newPost) => {23+ // ^? newPost: Post24+ this.queryClient.setQueryData(['posts', id], newPost)25+ },26+ })💡 Verification agent
❓ Verification inconclusive
Example is missing the queryClient injection (will not compile).
You call
this.queryClient.setQueryData(...)but never define/injectqueryClient.If the public API provides
injectQueryClient(), add it; otherwise injectQueryClientdirectly. Please adjust the generator/template accordingly.export class QueriesService { private http = inject(HttpClient) + // If available: + // private queryClient = injectQueryClient() + // Else: + // private queryClient = inject(QueryClient) updatePost(id: number) { return mutationOptions({ mutationFn: (post: Post) => Promise.resolve(post), mutationKey: ['updatePost', id], onSuccess: (newPost) => { // ^? newPost: Post this.queryClient.setQueryData(['posts', id], newPost) }, }) } }
Add missing queryClient injection (example won't compile as-is)
Calls this.queryClient.setQueryData(...) but queryClient isn't injected — add injectQueryClient() if available, otherwise inject(QueryClient).
File: docs/framework/angular/reference/functions/mutationoptions.md (lines 15-26)
export class QueriesService { private http = inject(HttpClient) + // If available: + // private queryClient = injectQueryClient() + // Else: + // private queryClient = inject(QueryClient) updatePost(id: number) { return mutationOptions({ mutationFn: (post: Post) => Promise.resolve(post), mutationKey: ['updatePost', id], onSuccess: (newPost) => { // ^? newPost: Post this.queryClient.setQueryData(['posts', id], newPost) }, }) } }📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
export class QueriesService { private http = inject(HttpClient) // If available: // private queryClient = injectQueryClient() // Else: // private queryClient = inject(QueryClient) updatePost(id: number) { return mutationOptions({ mutationFn: (post: Post) => Promise.resolve(post), mutationKey: ['updatePost', id], onSuccess: (newPost) => { // ^? newPost: Post this.queryClient.setQueryData(['posts', id], newPost) }, }) } }🤖 Prompt for AI Agents
In docs/framework/angular/reference/functions/mutationoptions.md around lines 15 to 26, the example calls this.queryClient.setQueryData(...) but never injects queryClient, so the snippet won't compile; fix by adding a queryClient injection on the class (e.g., add a private queryClient = injectQueryClient() if that helper exists in this codebase, otherwise add private queryClient = inject(QueryClient)) and ensure the class has the appropriate import/availability for injectQueryClient or QueryClient so this.queryClient is defined before use.I see this is in active development, thank you for your work @arnoud-dv 💪🏼
Actionable comments posted: 2
🧹 Nitpick comments (7)
packages/angular-query-experimental/src/__tests__/with-devtools.test.ts (7)
233-255: Flush before asserting reactive updates to avoid timing races.The panel may not be created yet, so these early expectations can be flaky. Flush deterministically, then assert.
Apply this diff:
@@ - TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - - TestBed.tick() + TestBed.inject(ENVIRONMENT_INITIALIZER) + await waitForDevtoolsToSettle() expect(mockDevtoolsInstance.setErrorTypes).toHaveBeenCalledTimes(0)
289-296: Same here: ensure the panel exists before asserting client updates.- TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - - TestBed.tick() + TestBed.inject(ENVIRONMENT_INITIALIZER) + await waitForDevtoolsToSettle()
321-326: Flush before position assertions.- TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - - TestBed.tick() + TestBed.inject(ENVIRONMENT_INITIALIZER) + await waitForDevtoolsToSettle()
352-357: Flush before button position assertions.- TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - - TestBed.tick() + TestBed.inject(ENVIRONMENT_INITIALIZER) + await waitForDevtoolsToSettle()
385-390: Flush before initialIsOpen assertions.- TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - - TestBed.tick() + TestBed.inject(ENVIRONMENT_INITIALIZER) + await waitForDevtoolsToSettle()
415-421: Ensure devtools is mounted before asserting and then toggle.Without awaiting dynamic import settlement, the mount assertion is timing-sensitive.
- TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - - expect(mockDevtoolsInstance.mount).toHaveBeenCalledTimes(1) + TestBed.inject(ENVIRONMENT_INITIALIZER) + await waitForDevtoolsToSettle() + + expect(mockDevtoolsInstance.mount).toHaveBeenCalledTimes(1)
55-59: Tidy teardown: clear pending timers before restoring real timers.Reduces cross‑test interference.
afterEach(() => { vi.restoreAllMocks() + vi.clearAllTimers() vi.useRealTimers() TestBed.resetTestingModule() })📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 7f8a863c7e80394e9854b9cc77f24cd60b7cddb5 and bc62387d44ce7ea6e25de30fc7aa6deb1542068f.
📒 Files selected for processing (2)
packages/angular-query-experimental/src/__tests__/with-devtools.test.ts(1 hunks)packages/angular-query-experimental/src/mutation-options.ts(4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- packages/angular-query-experimental/src/mutation-options.ts
🔇 Additional comments (4)
packages/angular-query-experimental/src/__tests__/with-devtools.test.ts (4)
61-151: Parametrized gating tests look solid.Good coverage across dev/prod and auto/explicit load paths.
210-231: Platform gating test is correct.Asserting no constructor call on server platform is the right invariant.
500-603: Deps injection tests are on point.Order fidelity, empty deps, and reactive updates are covered well.
136-142: Confirm TestBed.tick availability or add a fallback. Search produced no matches for a TestBed.tick augmentation; confirm the test harness provides TestBed.tick. If it isn’t provided, update uses in packages/angular-query-experimental/src/tests/with-devtools.test.ts (lines 136–142, 233–235, 289–291, 321–323, 352–354, 385–387, 415–417) to a guarded fallback, e.g.:if (typeof (TestBed as any).tick === 'function') TestBed.tick(); else await vi.advanceTimersByTimeAsync(0);
@@ -0,0 +33,21 @@33+const mockTanstackQueryDevtools = vi.fn(() => mockDevtoolsInstance)34+35+vi.mock('@tanstack/query-devtools', () => ({36+ TanstackQueryDevtools: mockTanstackQueryDevtools,37+}))38+39+vi.mock('@angular/core', async () => {40+ const actual = await vi.importActual('@angular/core')41+ return {42+ ...actual,43+ isDevMode: vi.fn(),44+ }45+})46+47+const mockIsDevMode = vi.mocked(isDevMode)48+49+describe('withDevtools feature', () => {50+ beforeEach(() => {51+ vi.clearAllMocks()52+ vi.useFakeTimers()53+ })🛠️ Refactor suggestion
Extract a single “waitForDevtoolsToSettle” helper and use it here to avoid flakiness and duplication.
You’re manually sequencing timers/ticks/import-settling in several tests with slight variations, which risks racey assertions. Centralize this into one helper and call it consistently.
Apply these diffs:
@@ const mockIsDevMode = vi.mocked(isDevMode) describe('withDevtools feature', () => { beforeEach(() => { vi.clearAllMocks() vi.useFakeTimers() }) @@ afterEach(() => { vi.restoreAllMocks() + vi.clearAllTimers() vi.useRealTimers() TestBed.resetTestingModule() })@@ -const mockIsDevMode = vi.mocked(isDevMode) +const mockIsDevMode = vi.mocked(isDevMode) + +// Consolidated flush helper to make async devtools creation deterministic +const waitForDevtoolsToSettle = async () => { + await vi.advanceTimersByTimeAsync(0) + if (typeof (TestBed as any).tick === 'function') { + ;(TestBed as any).tick() + } + await vi.dynamicImportSettled() + if (typeof (TestBed as any).tick === 'function') { + ;(TestBed as any).tick() + } + await vi.dynamicImportSettled() +}@@ - TestBed.inject(ENVIRONMENT_INITIALIZER) - await vi.advanceTimersByTimeAsync(0) - TestBed.tick() - await vi.dynamicImportSettled() - TestBed.tick() - await vi.dynamicImportSettled() + TestBed.inject(ENVIRONMENT_INITIALIZER) + await waitForDevtoolsToSettle()Also applies to: 136-142
🤖 Prompt for AI Agents
In packages/angular-query-experimental/src/__tests__/with-devtools.test.ts around lines 47-53 and 136-142, tests manually sequence timers/ticks and import settling in multiple places causing flakiness; extract a single waitForDevtoolsToSettle helper that advances the fake timers, awaits any necessary next-tick/promises, and returns once devtools-related async work is settled, then replace the manual sequences in all tests with calls to this helper to centralize timing logic and eliminate duplication.@@ -0,0 +183,21 @@183+ })),184+ ),185+ ],186+ })187+188+ TestBed.inject(ENVIRONMENT_INITIALIZER)189+ await vi.advanceTimersByTimeAsync(0)190+191+ expect(mockTanstackQueryDevtools).toHaveBeenCalledTimes(1)192+193+ const injector = TestBed.inject(EnvironmentInjector)194+195+ createEnvironmentInjector(196+ [197+ withDevtools(() => ({198+ loadDevtools: true,199+ })).ɵproviders,200+ ],201+ injector,202+ )203+🛠️ Refactor suggestion
Avoid private API access (ɵproviders) with createEnvironmentInjector.
You can pass EnvironmentProviders directly; no need to reach into the private ɵ property.
- createEnvironmentInjector( - [ - withDevtools(() => ({ - loadDevtools: true, - })).ɵproviders, - ], - injector, - ) + createEnvironmentInjector( + [ + withDevtools(() => ({ + loadDevtools: true, + })), + ], + injector, + )📝 Committable suggestion
‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
createEnvironmentInjector( [ withDevtools(() => ({ loadDevtools: true, })), ], injector, )🤖 Prompt for AI Agents
In packages/angular-query-experimental/src/__tests__/with-devtools.test.ts around lines 195 to 203, the test is accessing the private ɵproviders property on the result of withDevtools; remove the private API usage and pass the EnvironmentProviders directly to createEnvironmentInjector by replacing the .ɵproviders access with the withDevtools(...) result itself (i.e., pass withDevtools(() => ({ loadDevtools: true })) as an EnvironmentProvider or spread it if needed) so createEnvironmentInjector receives public EnvironmentProviders only.Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/angular-query-experimental/vite.config.ts (1)
122-122: Broaden DTS exclude globs to avoid leaking test types.Current 'src/tests' may not exclude nested files. Use recursive patterns and common test filename globs.
- exclude: ['src/__tests__'], + exclude: [ + 'src/__tests__/**', + 'src/**/__tests__/**', + 'src/**/*.test.*', + 'src/**/*.spec.*' + ],📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between bc62387d44ce7ea6e25de30fc7aa6deb1542068f and 1f2db27426a35e45904678e9cd6b9dd91c590247.
📒 Files selected for processing (6)
docs/framework/angular/devtools.md(4 hunks)examples/angular/devtools-panel/package.json(0 hunks)knip.json(1 hunks)packages/angular-query-experimental/package.json(3 hunks)packages/angular-query-experimental/src/index.ts(1 hunks)packages/angular-query-experimental/vite.config.ts(1 hunks)
💤 Files with no reviewable changes (1)
- examples/angular/devtools-panel/package.json
🚧 Files skipped from review as they are similar to previous changes (4)
- packages/angular-query-experimental/package.json
- packages/angular-query-experimental/src/index.ts
- docs/framework/angular/devtools.md
- knip.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Test
🔇 Additional comments (2)
packages/angular-query-experimental/vite.config.ts (2)
124-124: tsconfig path tweak LGTM.Relative path without './' works with both plugins; no action needed.
114-121: Verify exports wiring for devtools/devtools-panelpackages/angular-query-experimental/package.json contains ./devtools and ./devtools-panel exports and their /production variants, but the production "default" JS targets ./dist/devtools/index.mjs (and ./dist/devtools-panel/index.mjs) while the production "types" target ./dist/.../production/index.d.ts. Confirm the built JS and .d.ts exist at those exact paths and whether the split is intentional; if not, align exports (e.g., put both JS and .d.ts under the same production/ subdir or both under dist/...).
- Re-run import scan (previous rg failed due to the regex). Run:
jq '.exports' packages/angular-query-experimental/package.json rg -n "@tanstack/angular-query-experimental/devtools|@tanstack/angular-query-experimental/devtools-panel" -S -g '!packages/angular-query-experimental/**' | grep -v '/production' || true - Optional: consider moving stub.mjs into a production/ subdir for symmetry or update exports to clearly document the current layout.
arnoud-dv(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
View your CI Pipeline Execution ↗ for commit 1f2db27426a35e45904678e9cd6b9dd91c590247
nx affected --targets=test:sherif,test:knip,tes...nx run-many --target=build --exclude=examples/*...☁️ Nx Cloud last updated this comment at
2025-09-15 20:47:05UTC