Skip to content
Source
Sign inSign up
TanStack/query

feat(angular-query): move devtools to conditional sub-paths #9270

Mergedarnoud-dv(GitHub profile, opens in a new tab)merged 36 commits intomain fromrefs/pull/9270/headmerged by arnoud-dv(GitHub profile, opens in a new tab) View on GitHub

Breaking 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 labelspackage: angular-query-experimental

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: angular-query-devtools-experimental

    3. View your CI Pipeline Execution ↗ for commit 1f2db27426a35e45904678e9cd6b9dd91c590247

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded1m 25sView ↗
      nx run-many --target=build --exclude=examples/*...✅ Succeeded8sView ↗

      ☁️ Nx Cloud last updated this comment at 2025-09-15 20:47:05 UTC

    4. Codecov Report

      :x: Patch coverage is 92.30769% with 8 lines in 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

      Impacted file tree graph

      @@            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              
      ComponentsCoverage Δ
      @tanstack/angular-query-experimental87.06% <92.30%> (+0.06%):arrow_up:
      @tanstack/eslint-plugin-query83.24% <ø> (ø)
      @tanstack/query-async-storage-persister43.85% <ø> (ø)
      @tanstack/query-broadcast-client-experimental24.39% <ø> (ø)
      @tanstack/query-codemods0.00% <ø> (ø)
      @tanstack/query-core97.48% <ø> (ø)
      @tanstack/query-devtools3.48% <ø> (ø)
      @tanstack/query-persist-client-core79.60% <ø> (ø)
      @tanstack/query-sync-storage-persister84.61% <ø> (ø)
      @tanstack/query-test-utils77.77% <ø> (ø)
      @tanstack/react-query96.00% <ø> (ø)
      @tanstack/react-query-devtools10.00% <ø> (ø)
      @tanstack/react-query-next-experimental∅ <ø> (∅)
      @tanstack/react-query-persist-client100.00% <ø> (ø)
      @tanstack/solid-query78.13% <ø> (ø)
      @tanstack/solid-query-devtools∅ <ø> (∅)
      @tanstack/solid-query-persist-client100.00% <ø> (ø)
      @tanstack/svelte-query87.58% <ø> (ø)
      @tanstack/svelte-query-devtools∅ <ø> (∅)
      @tanstack/svelte-query-persist-client100.00% <ø> (ø)
      @tanstack/vue-query71.10% <ø> (ø)
      @tanstack/vue-query-devtools∅ <ø> (∅)
      :rocket: New features to boost your workflow:
      • :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/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@9270

    commit: 1f2db27

  • github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: angular-query-persist-client

  • Walkthrough

    Modularizes Angular devtools into dedicated devtools and devtools-panel submodules with production stubs and lazy dynamic imports; removes the legacy @tanstack/angular-query-devtools-experimental package 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.ts
    Add new devtools public module (types, withDevtools, production stub/index), optionalize @tanstack/query-devtools, add package exports for devtools/devtools-panel, remove top-level re-exports of devtools, add provideAngularQuery.
    Devtools panel API & runtime
    packages/angular-query-experimental/src/devtools-panel/*
    Add devtools-panel types, runtime injectDevtoolsPanel implementation, 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.json
    Update example imports to @tanstack/angular-query-experimental/devtools and .../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.md
    Rewrite devtools docs for DI-enabled withDevtools, add production import path guidance, remove old withDevtools doc, 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.js
    Add 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/*, many docs/...
    Remove numerous @public JSDoc 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, others
    Internal 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 teardown
    sequenceDiagram
      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
      end

    Estimated code review effort

    🎯 4 (Complex) | ⏱️ ~60 minutes

    • TanStack/query#9648 — Doc/example edits touching mutation-options examples; 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 nameStatusExplanationResolution
    Out of Scope Changes Check⚠️ WarningWhile 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 nameStatusExplanation
    Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
    Title Check✅ PassedThe 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✅ PassedThe 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✅ PassedNo 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.

    ❤️ Share
    Comment `@coderabbitai help` to get the list of available commands and usage tips.
  • 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 return Signal<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 be boolean, not Boolean

    Use 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 before divEl() is set, passing undefined to injectDevtoolsPanel.

    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), not new 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 shows DefaultError. 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 for options

    It’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 via definedTags to 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: Tighten hostElement typing 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> | HTMLElement and 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-devtools to optionalDependencies is 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/exclusion

    Minor 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 note

    Small 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 & object from return type

    Likely 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 OmitKeyof is 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/queries

    And 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/queries

    Also 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 index

    Given devtools moved to subpaths, retaining DeveloperToolsFeature on 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 devtools to 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 docs

    If 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 injectorIsDestroyed flag 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 shouldLoadToolsSignal computed 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” helper

    The 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 tests

    Stay 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 calls

    Also 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 name

    The 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 types

    Docs show a double object intersection; it’s noise and may confuse readers. Drop the duplicate “& object”.

    Apply:

    -): CreateInfiniteQueryOptions<...> &
    -  object &
    -  object
    +): CreateInfiniteQueryOptions<...> & object

    and

    -): CreateInfiniteQueryOptions<...> &
    -  object &
    -  object
    +): CreateInfiniteQueryOptions<...> & object

    Also applies to: 151-160


    89-101: OmitKeyof overload: same redundant intersections

    Same 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
    +## Parameters

    Also 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 repetition

    Multiple “### Param” sections; prefer “Parameters” once per overload with sub-bullets for each param.

    -### Param
    +### Parameters

    Also 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.yaml is 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.ts
    • packages/angular-query-experimental/package.json
    • packages/angular-query-experimental/src/devtools-panel/types.ts
    • packages/angular-query-experimental/src/devtools/types.ts
    • packages/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)

    @@ -60,5 +65,5 @@
    6065
    6166 ### Returns
    6267
    63-[`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" -n

    Length of output: 2240


    Update Angular docs CreateInfiniteQueryOptions path to type-aliases Change all links in docs/framework/angular/reference from ../interfaces/createinfinitequeryoptions.md to ../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.
    @@ -3,9 +3,13 @@
    33 title: injectIsMutating
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Function: injectIsMutating()
    79
    810 ```ts
    911 function injectIsMutating(filters?, options?): Signal<number>
    1012 ```
    1113
    14+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/angular

    Length 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.
    @@ -3,12 +3,16 @@
    33 title: injectQueries
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Function: injectQueries()
    79
    810 ```ts
    911 function injectQueries<T, TCombinedResult>(
    10- __namedParameters,
    12+ root0,
    1113 injector?,
    1214 ): Signal<TCombinedResult>
    1315 ```
    1416
    17+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.md

    Length 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 ```
    6163
    64+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/angular

    Length of output: 15539


    Replace all personal-fork “Defined in” links across Angular docs Search for https://github.com/arnoud-dv/query/blob/main in docs/framework/angular and update each “Defined in” URL to https://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.
    @@ -11,3 +13,5 @@
    1113 ): CreateMutationOptions<TData, TError, TVariables, TContext>
    1214 ```
    1315
    16+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.
    @@ -3,9 +3,13 @@
    33 title: provideIsRestoring
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Function: provideIsRestoring()
    79
    810 ```ts
    911 function provideIsRestoring(isRestoring): Provider
    1012 ```
    1113
    14+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 -v

    Length 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.md

    Length 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: provideQueryClient
    44 ---
    55
    6+<!-- 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' -C1

    Length 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.
    @@ -3,12 +3,16 @@
    33 title: provideQueryClient
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Function: provideQueryClient()
    79
    810 ```ts
    911 function provideQueryClient(queryClient): Provider
    1012 ```
    1113
    14+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 the
    1317 [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: queryFeature
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Function: queryFeature()
    79
    810 ```ts
    911 function queryFeature<TFeatureKind>(kind, providers): QueryFeature<TFeatureKind>
    1012 ```
    1113
    14+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/query in “Defined in:” links under docs/ must point to https://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.
    @@ -19,8 +23,10 @@
    1923 isError: (this) => this is CreateBaseQueryResult<TData, TError, CreateStatusBasedQueryResult<"error", TData, TError>>;
    2024 ```
    2125
    26+Defined in: [types.ts:64](https://github.com/arnoud-dv/query/blob/main/packages/angular-query-experimental/src/types.ts#L64)
    27+
    2228 #### Parameters
    2329
    2430 ##### this
    2531
    26-[`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 CreateBaseQueryResult is defined as <TData, TError, TState>; update the Markdown links at lines 32, 52, and 72 in docs/framework/angular/reference/interfaces/basequerynarrowing.md to <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.
    @@ -3,5 +3,9 @@
    33 title: CreateMutationOptions
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Interface: CreateMutationOptions\<TData, TError, TVariables, TContext\>
    79
    10+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.
    @@ -3,5 +3,8 @@
    33 title: QueryFeature
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Interface: QueryFeature\<TFeatureKind\>
    79
    10+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 object
    1618 ```
    1719
    20+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 to github.com/TanStack/query to 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.
    @@ -13,3 +15,5 @@
    1315 MapToSignals<InfiniteQueryObserverResult<TData, TError>>
    1416 ```
    1517
    18+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:


    🏁 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.md

    Length 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: CreateMutateAsyncFunction
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Type Alias: CreateMutateAsyncFunction\<TData, TError, TVariables, TContext\>
    79
    810 ```ts
    911 type CreateMutateAsyncFunction<TData, TError, TVariables, TContext> =
    1012 MutateFunction<TData, TError, TVariables, TContext>
    1113 ```
    1214
    15+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.
    @@ -13,3 +15,5 @@
    1315 > = MapToSignals<TDefinedInfiniteQueryObserver>
    1416 ```
    1517
    18+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 to packages/angular-query-experimental/src/types.ts#L122 in 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.
    @@ -35,3 +37,4 @@
    3537 : QueryObserverOptionsForCreateQueries[]
    3638 ```
    3739
    40+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 || true

    Length 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 to https://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: QueryFeatures
    44 ---
    55
    6+<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
    7+
    68 # Type Alias: QueryFeatures
    79
    810 ```ts
    911 type QueryFeatures = DeveloperToolsFeature | PersistQueryClientFeature
    1012 ```
    1113
    14+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 to TanStack/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" docs

    Length 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 to TanStack/query and 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.
    @@ -26,3 +27,5 @@
    2627 object
    2728 ```
    2829
    30+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.
  • @@ -172,5 +172,5 @@
    172172
    173173 #### injectInfiniteQueryFn
    174174
    175-() => [`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" -n

    Length 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 main are 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 to main). 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 & object from 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 & object intersection.

    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: Replace new Signal(...) with signal(...) across docs

    docs/framework/angular/reference/functions/mutationoptions.md (lines 30–35): change idSignal = new Signal(0) → idSignal = signal(0). Scan the docs for new 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 pages

    Ensure 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: Post
    24+ 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 #L38 will 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 options is 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()
    79
    10+Allows to share and re-use mutation options in a type-safe way.
    11+
    12+**Example**
    13+
    14+```ts
    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: Post
    24+ 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/inject queryClient.

    If the public API provides injectQueryClient(), add it; otherwise inject QueryClient directly. 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-panel

    packages/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.
  • Sign in to join this conversation.