Tracking: open Router and Start PRs by problem area #8810
Send to my agentThis issue tracks my open Router and Start PRs, grouped by the problem each one solves. PRs in the same group usually touch the same code, so reviewing and landing them together avoids repeat conflicts.
Prerender and static output#
#8291, #8293, and #8294 are split from #7346. #8294 is stacked on #8293, so #8293 lands first.
- #8293: typed, streaming
prerenderParamsfor dynamic routes, with per-page options and cancellation. Build-only callbacks are removed from deployed bundles by default. - #8294: route-level and per-entry sitemap metadata, with streamed sitemap and
pages.jsonoutput. - #8291: removes statically disabled SSR route code from production server bundles, keeping root shells, fallbacks, and client hydration. Fixes #6400.
- #8298: Vite prerender redirects go through the shared redirect handler, and redirects that leave the preview origin are skipped.
Wrong or unneeded JS and CSS reaching the browser#
- #8780: a chunk shared by sibling routes no longer gives one route another route's CSS and preloads. Rsbuild availability is now the intersection across parents, as in Rspack and webpack.
- #8275: RSC streams decode on first render, so a component that never renders no longer downloads client JavaScript or applies global CSS.
- #8277: a route module's first import no longer overwrites another router's route with the same ID, Vite RSC hot updates stop piling up stylesheet links, and webpack/Rspack
ChunkLoadErroruses the existing reload-once recovery. Supersedes #7219, #7901, #7937, #7304, and #7653. Fixes #7921 and #7633.
Work that keeps running after teardown or restarts#
- #8273: destroying or replacing a history removes its scroll-restoration listeners, so routers created and disposed without a page reload stop writing scroll positions on
pagehide. - #8268: queued hydration-replay events are released when a deferred hydration boundary unmounts before hydrating, so they no longer keep removed DOM nodes alive. Covers React and Solid.
- #8266: the closed devtools panel stops scanning the route cache every 500 ms (4 scans to 0 over 2 s in the fixture), and shared-style construction drops from 16 calls to 1.
- #8272: inline
idle()calls no longer restart pending hydration on every render.
Shipped bytes#
- #8392: apps that define no server functions no longer bundle the RPC client. Minimal React Start drops 10,094 B gzip with Vite and 12,914 B with Rsbuild; apps that use server functions grow 141 B and 449 B. Per-call overhead is unchanged.
- #8269: code-splitting warnings stay out of production browser bundles when
NODE_ENVand the bundler mode disagree. The focused webpack fixture drops one warning and 176 B gzip; the 18 standard bundle scenarios are unchanged.
Build-time speed#
- #8276: route splitting parses each reference file once instead of three times, and skips source maps the webpack and Rspack adapters discarded.
- #8305: compiles the code-splitting grouping schema once and skips Zod parsing for Rspack modules without server-function metadata.
- #8271:
eslint-plugin-startscopes server-component checks to each argument or callback and caches graph edges, removing repeated scans of unrelated code.
Runtime speed#
- #8806: Seroval 1.7.1 cuts per-node allocations in its parsers and streaming serializers and adds backpressure for streamed async iterables and
ReadableStream. The tradeoff: a minimal Vite client entry grows from 7,460 B to 8,652 B gzip, while Rsbuild bundles shrink.
API behavior#
- #7776:
matchRouteappliesparams.parse, respects route precedence, and returnsfalsefor templates that aren't in the route tree. Closes #2450. - #7693: server functions accept an optional manual
id, with collision rules and IDs that survive HMR. - #8274: development RSC slot previews clone each shared object once and no longer overflow the stack on cyclic arguments.
Repo and docs#
- #8612 (draft, not for merge): what the pnpm 12.9.1 upgrade looks like. The lockfile grows 4,560 bytes and resolved versions don't change.
- #8267: performance-review and webpack guidance for the agent instructions.
- #7511: a Request Lifecycle guide for Start, covering middleware, server routes, server functions, and SSR.
Sign in to join this conversation.