Repository navigation
revert: keep server-rendered pending UI of no-SSR routes through hydration (#8643) - #8646
Conversation
…ation (#8643) This reverts commit ff9f753. #8643 introduced a React hydration mismatch for `ssr: false` and `ssr: 'data-only'` routes without a pending component: the client load can commit before React hydrates the route's Suspense boundary, which then hydrates the route component against the server's pending UI. Revert while a proper fix is worked on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
View your CI Pipeline Execution ↗ for commit 6209e8d
☁️ Nx Cloud last updated this comment at |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (10)
💤 Files with no reviewable changes (7)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughReact, Solid, and Vue route matches now wrap routes with ChangesNo-SSR route rendering
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is established; the change is mergeable after normal checks. Pre-merge checks |
|
🚀 Changeset Version Preview5 package(s) bumped directly, 19 bumped as dependents. 🟩 Patch bumps
|
Bundle Size Benchmarks
The following scenarios have bundle-size changes compared with the baseline:
Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better. |
More templates
@tanstack/arktype-adapter
@tanstack/eslint-plugin-router
@tanstack/eslint-plugin-start
@tanstack/history
@tanstack/nitro-v2-vite-plugin
@tanstack/react-router
@tanstack/react-router-devtools
@tanstack/react-router-ssr-query
@tanstack/react-start
@tanstack/react-start-client
@tanstack/react-start-rsc
@tanstack/react-start-server
@tanstack/router-cli
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-devtools-core
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-ssr-query-core
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@tanstack/solid-router-ssr-query
@tanstack/solid-start
@tanstack/solid-start-client
@tanstack/solid-start-server
@tanstack/start-client-core
@tanstack/start-fn-stubs
@tanstack/start-plugin-core
@tanstack/start-server-core
@tanstack/start-static-server-functions
@tanstack/start-storage-context
@tanstack/valibot-adapter
@tanstack/virtual-file-routes
@tanstack/vue-router
@tanstack/vue-router-devtools
@tanstack/vue-router-ssr-query
@tanstack/vue-start
@tanstack/vue-start-client
@tanstack/vue-start-server
@tanstack/zod-adapter
commit: |
Merging this PR will degrade performance by 3.77%ℹ️ 99 benchmarks have no flame graph
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Memory | mem server aborted-requests (solid) |
152 KB | 142.7 KB | +6.53% |
| ⚡ | Memory | mem server error-paths redirect (react) |
12.4 KB | 11.9 KB | +4.42% |
| ⚡ | Memory | mem server request-churn (solid) |
134.4 KB | 129.5 KB | +3.8% |
| ⚡ | Memory | mem client unique-location-churn (solid) |
63.7 KB | 61.5 KB | +3.44% |
| 👁 | Simulation | client-side navigation loop (solid) |
155.2 ms | 160.5 ms | -3.35% |
| 👁 | Simulation | client-async-pipeline navigation loop (solid) |
107.2 ms | 113 ms | -5.15% |
| 👁 | Simulation | client-control-flow navigation loop (solid) |
94 ms | 99 ms | -5.12% |
| 👁 | Simulation | client-head navigation loop (solid) |
387.9 ms | 401.7 ms | -3.44% |
| 👁 | Simulation | client-history navigation loop (solid) |
88 ms | 94.1 ms | -6.48% |
| 👁 | Simulation | client-loaders navigation loop (solid) |
137.3 ms | 144.1 ms | -4.7% |
| 👁 | Simulation | client-mount loop (solid) |
87.6 ms | 90.5 ms | -3.21% |
| 👁 | Simulation | client-nested-params navigation loop (solid) |
691.1 ms | 761.8 ms | -9.27% |
| 👁 | Simulation | client-preload interaction loop (solid) |
144.5 ms | 150.9 ms | -4.24% |
| 👁 | Simulation | client-route-tree-scale navigation loop (solid) |
206.2 ms | 220.1 ms | -6.3% |
| 👁 ℹ️ | Simulation | client-search-params navigation loop (solid) |
216.5 ms | 223.6 ms | -3.2% |
| 👁 | Simulation | client-rewrites navigation loop (solid) |
120.4 ms | 128.2 ms | -6.1% |
| 👁 | Memory | mem server error-paths error (vue) |
114.2 KB | 119.5 KB | -4.42% |
| 👁 | Memory | mem server error-paths not-found (vue) |
121.6 KB | 127.8 KB | -4.84% |
| 👁 | Memory | mem client unique-location-churn (vue) |
88.9 KB | 96.2 KB | -7.66% |
| 👁 | Memory | mem client mount-unmount (solid) |
76.4 KB | 80.9 KB | -5.57% |
| ... | ... | ... | ... | ... | ... |
ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing revert/8643-no-ssr-pending-hydration (6209e8d) with main (ff9f753)
Footnotes
-
3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
🎯 Changes
Reverts #8643. Reopens #8640 until a proper fix lands.
#8643 introduced a React hydration mismatch. It affects
ssr: falseandssr: 'data-only'routes that have nopendingComponent(and nodefaultPendingComponent). React hydrates the route's Suspense boundary after the shell commits. The client load starts in between, and for data-only routes it commits immediately. The boundary then hydrates the route component against the server's pending UI:Before #8643,
ClientOnlyrendered its fallback during hydration whatever the match status was, which hid this. The #8643 tests all used apendingComponent, so they missed it.Solid and Vue are reverted too. The change was shared across the adapters, and it is easier to redo all three together.
The changeset is removed with the revert. #8643 was never released, so no changeset is needed.
AI-assisted (Claude).
✅ Checklist
🚀 Release Impact
🤖 Generated with Claude Code
Summary by CodeRabbit
ssr: falseorssr: 'data-only'across React, Solid, and Vue routers. These routes now show their pending UI during server rendering and use it as the client-only fallback while route content becomes available.