Skip to content
Source
Sign inSign up
TanStack/query

chore(examples/solid): render 'SolidQueryDevtools' in 'auto-refetching', 'optimistic-updates' and 'prefetching' SolidStart 2 examples #12521

Mergedsukvvon(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/12521/headmerged by sukvvon(GitHub profile, opens in a new tab)

🎯 Changes

Renders SolidQueryDevtools in the auto-refetching, optimistic-updates and prefetching SolidStart 2 examples, placed inside QueryClientProvider before the Router as in solid-start-streaming, and adds @tanstack/solid-query-devtools to their dependencies.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with pnpm run test:pr, or these tests do not apply to this pull request.
  • I have followed the AI contribution policy and fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • New Features
    • Added Solid Query Devtools to the auto-refetching, optimistic updates, and prefetching Solid Start examples for inspecting query state.
    1. ⚠️ No Changeset found

      Latest commit: 302b0c8aa283408a5362e582cd4c642c202bfd9b

      Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

      This PR includes no changesets

      When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

      Click here to learn what changesets are, and how to add one.

      Click here if you're a maintainer who wants to add a changeset to this PR

    2. View your CI Pipeline Execution ↗ for commit 302b0c8aa283408a5362e582cd4c642c202bfd9b

      CommandStatusDurationResult
      nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded6m 40sView ↗
      nx run-many --target=build --exclude=examples/*...✅ Succeeded<1sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-11-04 07:55:14 UTC

    3. 🚀 Changeset Version Preview

      5 package(s) bumped directly, 19 bumped as dependents.

      🟩 Patch bumps

      PackageVersionReason
      @tanstack/preact-query-devtools5.105.3 → 5.105.4Changeset
      @tanstack/query-devtools5.105.3 → 5.105.4Changeset
      @tanstack/react-query-devtools5.105.3 → 5.105.4Changeset
      @tanstack/solid-query-devtools5.105.3 → 5.105.4Changeset
      @tanstack/vue-query-devtools6.3.9 → 6.3.10Changeset
      @tanstack/angular-query-experimental5.105.3 → 5.105.4Dependent
      @tanstack/eslint-plugin-query5.105.3 → 5.105.4Dependent
      @tanstack/lit-query0.2.34 → 0.2.35Dependent
      @tanstack/preact-query5.105.3 → 5.105.4Dependent
      @tanstack/preact-query-persist-client5.105.3 → 5.105.4Dependent
      @tanstack/query-async-storage-persister5.105.3 → 5.105.4Dependent
      @tanstack/query-broadcast-client-experimental5.105.3 → 5.105.4Dependent
      @tanstack/query-core5.105.3 → 5.105.4Dependent
      @tanstack/query-persist-client-core5.105.3 → 5.105.4Dependent
      @tanstack/query-sync-storage-persister5.105.3 → 5.105.4Dependent
      @tanstack/react-query5.105.3 → 5.105.4Dependent
      @tanstack/react-query-next-experimental5.105.3 → 5.105.4Dependent
      @tanstack/react-query-persist-client5.105.3 → 5.105.4Dependent
      @tanstack/solid-query5.105.3 → 5.105.4Dependent
      @tanstack/solid-query-persist-client5.105.3 → 5.105.4Dependent
      @tanstack/svelte-query6.3.9 → 6.3.10Dependent
      @tanstack/svelte-query-devtools6.3.9 → 6.3.10Dependent
      @tanstack/svelte-query-persist-client6.3.9 → 6.3.10Dependent
      @tanstack/vue-query5.105.3 → 5.105.4Dependent
    4. Explain Change →

      No actionable comments were generated in the recent review.

      Walkthrough

      Three SolidStart 2 examples add @tanstack/solid-query-devtools and render SolidQueryDevtools inside QueryClientProvider.

      Changes: SolidStart 2 Devtools

      Layer / File(s)Summary
      Add and render Solid Query Devtools
      examples/solid/auto-refetching-solid-start2/{package.json,src/app.tsx}, examples/solid/optimistic-updates-solid-start2/{package.json,src/app.tsx}, examples/solid/prefetching-solid-start2/{package.json,src/app.tsx}
      Each example adds @tanstack/solid-query-devtools version ^5.105.3 and renders SolidQueryDevtools inside QueryClientProvider. The prefetching example renders the devtools before the router.

      Estimated code review effort: 1 (Trivial) | ~5 minutes

      Change: Other

      Possibly related PRs

      • TanStack/query#12507: Adds the same devtools integration pattern to a SolidStart 2 example.
      • TanStack/query#12310: Changes how SolidQueryDevtools handles an omitted theme prop, which these examples omit.
      • TanStack/query#12517: Adds a Solid refresh skip annotation to Query Devtools builds, which are used in SolidStart 2.
      Merge Risk: Minimal · up to 302b0

      The three examples gain query devtools without changing their routing or query behavior. No merge-blocking issue is identified; merge after normal checks pass.

      Pre-merge checks: Passed 5
      Check nameStatusExplanation
      Title checkPassedThe title names the main change: rendering SolidQueryDevtools in three SolidStart 2 examples (auto-refetching, optimistic-updates, prefetching). The raw summary confirms that each of these examples ge…
      Description checkPassedThe description fills every template section. The Changes section states that SolidQueryDevtools is rendered in the auto-refetching, optimistic-updates and prefetching SolidStart 2 examples, inside Qu…
      Docstring CoveragePassedNo eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Title check

      Explanation

      The title names the main change: rendering SolidQueryDevtools in three SolidStart 2 examples (auto-refetching, optimistic-updates, prefetching). The raw summary confirms that each of these examples gets the devtools in app.tsx and the matching dependency in package.json. The title is 133 characters, which is long, but it stays on topic and specific.

      Full details: Description check

      Explanation

      The description fills every template section. The Changes section states that SolidQueryDevtools is rendered in the auto-refetching, optimistic-updates and prefetching SolidStart 2 examples, inside QueryClientProvider before the Router, and that @tanstack/solid-query-devtools is added to their dependencies. The checklist items are marked. The release impact item is marked as docs/CI/dev-only with no release. The description does not give a reason for the change beyond following the solid-start-streaming example, which is a minor gap.

      Full details: Docstring Coverage

      Explanation

      No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files. (3 skipped: 3 unsupported.)

      Finishing Touches
      Generate docstrings
      • Commit to this branch
      • Create a new PR
      Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      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
      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between bd4cc6515dc486e5190a55c802cd5ec5ecbce52a and 302b0c8aa283408a5362e582cd4c642c202bfd9b.

      Files ignored due to path filters: 1
      • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
      Files selected for processing: 6
      • examples/solid/auto-refetching-solid-start2/package.json
      • examples/solid/auto-refetching-solid-start2/src/app.tsx
      • examples/solid/optimistic-updates-solid-start2/package.json
      • examples/solid/optimistic-updates-solid-start2/src/app.tsx
      • examples/solid/prefetching-solid-start2/package.json
      • examples/solid/prefetching-solid-start2/src/app.tsx

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

    5. More templates

      @tanstack/angular-query-experimental

      npm i https://pkg.pr.new/@tanstack/angular-query-experimental@12521

      @tanstack/eslint-plugin-query

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@12521

      @tanstack/lit-query

      npm i https://pkg.pr.new/@tanstack/lit-query@12521

      @tanstack/preact-query

      npm i https://pkg.pr.new/@tanstack/preact-query@12521

      @tanstack/preact-query-devtools

      npm i https://pkg.pr.new/@tanstack/preact-query-devtools@12521

      @tanstack/preact-query-persist-client

      npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@12521

      @tanstack/query-async-storage-persister

      npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@12521

      @tanstack/query-broadcast-client-experimental

      npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@12521

      @tanstack/query-core

      npm i https://pkg.pr.new/@tanstack/query-core@12521

      @tanstack/query-devtools

      npm i https://pkg.pr.new/@tanstack/query-devtools@12521

      @tanstack/query-persist-client-core

      npm i https://pkg.pr.new/@tanstack/query-persist-client-core@12521

      @tanstack/query-sync-storage-persister

      npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@12521

      @tanstack/react-query

      npm i https://pkg.pr.new/@tanstack/react-query@12521

      @tanstack/react-query-devtools

      npm i https://pkg.pr.new/@tanstack/react-query-devtools@12521

      @tanstack/react-query-next-experimental

      npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@12521

      @tanstack/react-query-persist-client

      npm i https://pkg.pr.new/@tanstack/react-query-persist-client@12521

      @tanstack/solid-query

      npm i https://pkg.pr.new/@tanstack/solid-query@12521

      @tanstack/solid-query-devtools

      npm i https://pkg.pr.new/@tanstack/solid-query-devtools@12521

      @tanstack/solid-query-persist-client

      npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@12521

      @tanstack/svelte-query

      npm i https://pkg.pr.new/@tanstack/svelte-query@12521

      @tanstack/svelte-query-devtools

      npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@12521

      @tanstack/svelte-query-persist-client

      npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@12521

      @tanstack/vue-query

      npm i https://pkg.pr.new/@tanstack/vue-query@12521

      @tanstack/vue-query-devtools

      npm i https://pkg.pr.new/@tanstack/vue-query-devtools@12521

      commit: 302b0c8

    6. size-limit report 📦

      PathSize
      react full11.84 KB (0%)
      react minimal8.66 KB (0%)

Sign in to join this conversation.