0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/solid-start/query-integration/tests
Brenley Dueck f9b0e57ce0
fix(solid-router): resolve defaultNotFoundComponent at render time to avoid hydration desync (#7734)
* 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 2026-07-03 01:47:05 +02:00
..
app.spec.ts solid-router-ssr-query (#5310) 2025-10-21 00:29:02 +02:00
not-found-reload.spec.ts fix(solid-router): resolve defaultNotFoundComponent at render time to avoid hydration desync (#7734) 2026-07-03 01:47:05 +02:00