mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
* fix(solid-router): resolve defaultNotFoundComponent at render time to avoid hydration desync Previously defaultNotFoundComponent was applied by lazily mutating the boundary route's options.notFoundComponent when a notFound was handled. Route objects are module singletons shared across server requests, so once the server handled any 404, later SSRs of valid URLs wrapped the match in a CatchNotFound boundary the freshly-hydrating client doesn't render, shifting hydration keys and leaving the subtree unclaimed (visible but inert DOM). Resolve defaultNotFoundComponent at render time in Match.tsx so the boundary structure is deterministic on both server and client, and add an e2e regression test. * ci: apply automated fixes * chore: add changeset for defaultNotFoundComponent hydration fix --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> |
History
|
|
|---|---|---|
| .. | ||
| app.spec.ts | ||
| not-found-reload.spec.ts | ||