Skip to content
Source
Sign inSign up
TanStack/router

Fix hydration mismatch for ssr='data-only' with pendingComponent #7266

Mergedcopilot-swe-agent[bot](GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/7266/headmerged by birkskyum(GitHub profile, opens in a new tab)

Closes https://github.com/TanStack/router/issues/7085

Fixes the Solid Router resolvedNoSsr condition so ssr: 'data-only' routes with a pendingComponent hydrate correctly without duplicating suspense fallback output.

Adds Solid Start selective SSR regression coverage for the data-only pending component hydration case, and shares browser error collection through @tanstack/router-e2e-utils.

    1. copilot-swe-agent[bot](GitHub profile, opens in a new tab) assignedcopilot-swe-agent[bot]

    2. @copilot+gpt-5.5 Lets try gpt 5.5

    3. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: solid-router

    4. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 3ff832629133dac9ea60aed995ff458408414192

      CommandStatusDurationResult
      nx affected --targets=test:eslint,test:unit,tes...❌ Failed5m 20sView ↗
      nx run-many --target=build --exclude=examples/*...✅ Succeeded21sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-04-26 02:49:15 UTC

    5. github-actions[bot](GitHub profile, opens in a new tab)commented

      🚀 Changeset Version Preview

      1 package(s) bumped directly, 3 bumped as dependents.

      🟩 Patch bumps

      PackageVersionReason
      @tanstack/solid-router1.168.23 → 1.168.24Changeset
      @tanstack/solid-start1.167.46 → 1.167.47Dependent
      @tanstack/solid-start-client1.166.40 → 1.166.41Dependent
      @tanstack/solid-start-server1.166.41 → 1.166.42Dependent
    6. brenelz(GitHub profile, opens in a new tab) changed the title

    7. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      More templates

      @tanstack/arktype-adapter

      npm i https://pkg.pr.new/@tanstack/arktype-adapter@7266

      @tanstack/eslint-plugin-router

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@7266

      @tanstack/eslint-plugin-start

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@7266

      @tanstack/history

      npm i https://pkg.pr.new/@tanstack/history@7266

      @tanstack/nitro-v2-vite-plugin

      npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@7266

      @tanstack/react-router

      npm i https://pkg.pr.new/@tanstack/react-router@7266

      @tanstack/react-router-devtools

      npm i https://pkg.pr.new/@tanstack/react-router-devtools@7266

      @tanstack/react-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@7266

      @tanstack/react-start

      npm i https://pkg.pr.new/@tanstack/react-start@7266

      @tanstack/react-start-client

      npm i https://pkg.pr.new/@tanstack/react-start-client@7266

      @tanstack/react-start-rsc

      npm i https://pkg.pr.new/@tanstack/react-start-rsc@7266

      @tanstack/react-start-server

      npm i https://pkg.pr.new/@tanstack/react-start-server@7266

      @tanstack/router-cli

      npm i https://pkg.pr.new/@tanstack/router-cli@7266

      @tanstack/router-core

      npm i https://pkg.pr.new/@tanstack/router-core@7266

      @tanstack/router-devtools

      npm i https://pkg.pr.new/@tanstack/router-devtools@7266

      @tanstack/router-devtools-core

      npm i https://pkg.pr.new/@tanstack/router-devtools-core@7266

      @tanstack/router-generator

      npm i https://pkg.pr.new/@tanstack/router-generator@7266

      @tanstack/router-plugin

      npm i https://pkg.pr.new/@tanstack/router-plugin@7266

      @tanstack/router-ssr-query-core

      npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@7266

      @tanstack/router-utils

      npm i https://pkg.pr.new/@tanstack/router-utils@7266

      @tanstack/router-vite-plugin

      npm i https://pkg.pr.new/@tanstack/router-vite-plugin@7266

      @tanstack/solid-router

      npm i https://pkg.pr.new/@tanstack/solid-router@7266

      @tanstack/solid-router-devtools

      npm i https://pkg.pr.new/@tanstack/solid-router-devtools@7266

      @tanstack/solid-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@7266

      @tanstack/solid-start

      npm i https://pkg.pr.new/@tanstack/solid-start@7266

      @tanstack/solid-start-client

      npm i https://pkg.pr.new/@tanstack/solid-start-client@7266

      @tanstack/solid-start-server

      npm i https://pkg.pr.new/@tanstack/solid-start-server@7266

      @tanstack/start-client-core

      npm i https://pkg.pr.new/@tanstack/start-client-core@7266

      @tanstack/start-fn-stubs

      npm i https://pkg.pr.new/@tanstack/start-fn-stubs@7266

      @tanstack/start-plugin-core

      npm i https://pkg.pr.new/@tanstack/start-plugin-core@7266

      @tanstack/start-server-core

      npm i https://pkg.pr.new/@tanstack/start-server-core@7266

      @tanstack/start-static-server-functions

      npm i https://pkg.pr.new/@tanstack/start-static-server-functions@7266

      @tanstack/start-storage-context

      npm i https://pkg.pr.new/@tanstack/start-storage-context@7266

      @tanstack/valibot-adapter

      npm i https://pkg.pr.new/@tanstack/valibot-adapter@7266

      @tanstack/virtual-file-routes

      npm i https://pkg.pr.new/@tanstack/virtual-file-routes@7266

      @tanstack/vue-router

      npm i https://pkg.pr.new/@tanstack/vue-router@7266

      @tanstack/vue-router-devtools

      npm i https://pkg.pr.new/@tanstack/vue-router-devtools@7266

      @tanstack/vue-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@7266

      @tanstack/vue-start

      npm i https://pkg.pr.new/@tanstack/vue-start@7266

      @tanstack/vue-start-client

      npm i https://pkg.pr.new/@tanstack/vue-start-client@7266

      @tanstack/vue-start-server

      npm i https://pkg.pr.new/@tanstack/vue-start-server@7266

      @tanstack/zod-adapter

      npm i https://pkg.pr.new/@tanstack/zod-adapter@7266

      commit: e22c3b5

    8. github-actions[bot](GitHub profile, opens in a new tab)commented

      Bundle Size Benchmarks

      • Commit: 65874cd48a26
      • Measured at: 2026-04-26T02:44:21.824Z
      • Baseline source: history:aebf4264767a
      • Dashboard: bundle-size history
      ScenarioCurrent (gzip)Delta vs baselineRawBrotliTrend
      react-router.minimal87.35 KiB0 B (0.00%)274.60 KiB75.97 KiB▅▅▅▅▅▅▅▅▅▅▅
      react-router.full90.77 KiB0 B (0.00%)286.11 KiB78.90 KiB▅▅▅▅▅▅▅▅▅▅▅
      solid-router.minimal35.58 KiB0 B (0.00%)106.86 KiB31.98 KiB▁▁▁▁▁▁▁▁███
      solid-router.full40.32 KiB-5 B (-0.01%)121.07 KiB36.26 KiB▁▁▁▁▄▄▄▄▆███
      vue-router.minimal53.30 KiB0 B (0.00%)152.01 KiB47.88 KiB▅▅▅▅▅▅▅▅▅▅▅
      vue-router.full58.44 KiB0 B (0.00%)168.19 KiB52.34 KiB▅▅▅▅▅▅▅▅▅▅▅
      react-start.minimal101.92 KiB0 B (0.00%)322.77 KiB88.18 KiB▅▅▅▅▅▅▅▅▅▅▅
      react-start.full105.35 KiB0 B (0.00%)333.10 KiB91.02 KiB▅▅▅▅▅▅▅▅▅▅▅
      react-start.rsbuild.minimal101.43 KiB0 B (0.00%)325.62 KiB87.12 KiB▁████████
      react-start.rsbuild.full104.74 KiB0 B (0.00%)336.31 KiB89.93 KiB▅▅▅▅▅▅▅▅▅
      solid-start.minimal49.58 KiB+1 B (+0.00%)152.69 KiB43.74 KiB▁▁▁▁▁▁▁▁████
      solid-start.full55.37 KiB+5 B (+0.01%)169.59 KiB48.72 KiB▁▁▁▁▄▄▄▄▅███

      Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better.

    9. @@ -0,0 +4,21 @@
      4+test.describe('pending component hydration', () => {
      5+ test('data-only route hydrates from pending element to loaded state on first load', async ({
      6+ page,
      7+ }) => {
      8+ const browserErrors: Array<string> = []
      9+
      10+ page.on('pageerror', (error) => {
      11+ browserErrors.push(error.message)
      12+ })
      13+
      14+ page.on('console', (message) => {
      15+ if (message.type() === 'error' || message.type() === 'warning') {
      16+ browserErrors.push(message.text())
      17+ }
      18+ })
      19+
      20+ page.on('requestfailed', (request) => {
      21+ browserErrors.push(
      22+ `${request.url()} ${request.failure()?.errorText ?? 'failed'}`,
      23+ )
      24+ })
      birkskyum(GitHub profile, opens in a new tab)commented

      @copilot do we have all this in a util somewhere ? it seems quite generic

      @copilot+gpt-5.4 resolve this

      Added a shared collectBrowserErrors helper in @tanstack/router-e2e-utils and updated this test to use it. Addressed in 92177e3.

      Resolved by the existing 92177e3 follow-up: the generic browser error listener is now collectBrowserErrors in @tanstack/router-e2e-utils, and this spec imports it instead of defining it inline.

    10. copilot-swe-agent[bot](GitHub profile, opens in a new tab)commented

      @copilot what is mre?

      MRE means “minimal reproducible example” — in this PR it’s the small route added to reproduce the hydration mismatch.

      Warning

      Firewall rules blocked me from connecting to one or more addresses (expand for details)

      I tried to connect to the following addresses, but was blocked by firewall rules:

      • cloud.nx.app
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js run @tanstack/router-e2e-utils:test:eslint --outputStyle=stream --skipRemoteCache (dns block)
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js run tanstack-solid-start-e2e-selective-ssr:test:e2e --outputStyle=stream --skipRemoteCache (dns block)
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js run tanstack-solid-start-e2e-selective-ssr:test:e2e --outputStyle=stream --skipRemoteCache -- tests/pending-component-hydration.spec.ts (dns block)
      • sparrow.cloudflare.com
        • Triggering command: /usr/local/bin/node /usr/local/bin/node --no-warnings --experimental-vm-modules /home/REDACTED/work/router/router/node_modules/.pnpm/wrangler@4.75.0/node_modules/wrangler/wrangler-dist/cli.js types (dns block)
      • www.google-analytics.com
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js show project tanstack-solid-start-e2e-selective-ssr --json (dns block)
        • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/router/router/node_modules/.pnpm/nx@22.6.5_@swc-node&#43;register@1.11.1_@emnapi&#43;core@1.10.0_@emnapi&#43;runtime@1.10.0_@swc&#43;cor_f8cf112faadbfcc2e1461352f7817c81/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin5357-2-363.557867.sock /home/REDACTED/work/router/router/node_modules/.pnpm/nx@22.6.5_@swc-node&#43;register@1.11.1_@emnapi&#43;core@1.10.0_@emnapi&#43;runtime@1.10.0_@swc&#43;cor_f8cf112faadbfcc2e1461352f7817c81/node_modules/nx/src/plugins/project-json/build-nodes/project-json (dns block)
        • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/router/router/node_modules/.pnpm/nx@22.6.5_@swc-node&#43;register@1.11.1_@emnapi&#43;core@1.10.0_@emnapi&#43;runtime@1.10.0_@swc&#43;cor_f8cf112faadbfcc2e1461352f7817c81/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin5357-3-370.280252.sock ./scripts/nx/playwright-plugin.ts (dns block)

      If you need me to access, download, or install something from one of these locations, you can either:

    11. @copilot+gpt-5.4 rename the route from "routes/mre-data-only.tsx" to something more descriptive (don't include MRE, because all routes are practively mre's)

    12. codspeed[bot](GitHub profile, opens in a new tab)commented

      Merging this PR will not alter performance

      ✅ 5 untouched benchmarks ⏩ 1 skipped benchmark1


      Comparing copilot/fix-hydration-regression-for-ssr (3ff8326) with main (aebf426)[^unexpected-base] Open in CodSpeed

      Footnotes

      1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

    13. copilot-swe-agent[bot](GitHub profile, opens in a new tab)commented

      @copilot+gpt-5.4 rename the route from "routes/mre-data-only.tsx" to something more descriptive (don't include MRE, because all routes are practively mre's)

      Renamed the route to data-only-pending-component and updated the test plus generated route tree in c2c2641. No UI changed here, so there isn’t a meaningful screenshot to attach.

      Warning

      Firewall rules blocked me from connecting to one or more addresses (expand for details)

      I tried to connect to the following addresses, but was blocked by firewall rules:

      • cloud.nx.app
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js run tanstack-solid-start-e2e-selective-ssr:build --outputStyle=stream --skipRemoteCache (dns block)
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js run tanstack-solid-start-e2e-selective-ssr:test:e2e --outputStyle=stream --skipRemoteCache -- tests/pending-component-hydration.spec.ts tart-e2e-selectinode ream e git conf --local pull.rebase in/sh (dns block)
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js run tanstack-solid-start-e2e-selective-ssr:test:e2e --outputStyle=stream --skipRemoteCache -- tests/pending-component-hydration.spec.ts (dns block)
      • sparrow.cloudflare.com
        • Triggering command: /usr/local/bin/node /usr/local/bin/node --no-warnings --experimental-vm-modules /home/REDACTED/work/router/router/node_modules/.pnpm/wrangler@4.75.0/node_modules/wrangler/wrangler-dist/cli.js types (dns block)
      • www.google-analytics.com
        • Triggering command: /usr/local/bin/node node ./node_modules/.bin/../nx/bin/nx.js run tanstack-solid-start-e2e-selective-ssr:build --outputStyle=stream --skipRemoteCache (dns block)
        • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/router/router/node_modules/.pnpm/nx@22.6.5_@swc-node&#43;register@1.11.1_@emnapi&#43;core@1.10.0_@emnapi&#43;runtime@1.10.0_@swc&#43;cor_f8cf112faadbfcc2e1461352f7817c81/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin4333-2-362.046595.sock /home/REDACTED/work/router/router/node_modules/.pnpm/nx@22.6.5_@swc-node&#43;register@1.11.1_@emnapi&#43;core@1.10.0_@emnapi&#43;runtime@1.10.0_@swc&#43;cor_f8cf112faadbfcc2e1461352f7817c81/node_modules/nx/src/plugins/project-json/build-nodes/project-json (dns block)
        • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/router/router/node_modules/.pnpm/nx@22.6.5_@swc-node&#43;register@1.11.1_@emnapi&#43;core@1.10.0_@emnapi&#43;runtime@1.10.0_@swc&#43;cor_f8cf112faadbfcc2e1461352f7817c81/node_modules/nx/src/project-graph/plugins/isolation/plugin-worker /tmp/plugin4333-3-366.705703.sock ./scripts/nx/playwright-plugin.ts (dns block)

      If you need me to access, download, or install something from one of these locations, you can either:

    14. Nx Cloud has identified a flaky task in your failed CI:

      🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.

      Nx Cloud View detailed reasoning in Nx Cloud ↗


      🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)
    15. Nx Cloud has identified a flaky task in your failed CI:

      🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.

      Nx Cloud View detailed reasoning in Nx Cloud ↗


      🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)
    16. Nx Cloud has identified a flaky task in your failed CI:

      🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.

      Nx Cloud View detailed reasoning in Nx Cloud ↗


      🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)
    17. Nx Cloud has identified a flaky task in your failed CI:

      🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.

      Nx Cloud View detailed reasoning in Nx Cloud ↗


      🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)

Sign in to join this conversation.