Hydration
Hydration attaches the browser React tree to the HTML produced by SSR.
What Is Reused
Vext writes the render payload into the document so the client entry can hydrate without repeating first-screen service calls:
- page id
- props
- layoutData
- locale and messages
- head metadata used for the initial route
- build id and route assets
Avoid Mismatch
Keep SSR and browser output deterministic:
Hydration Markers
Vext exposes low-noise runtime markers for tests and diagnostics:
The browser does not need to print performance logs in production. Validation scripts read DOM and Performance API signals.
Route Assets
The render manifest records initial JS/CSS for each route. SSR can inject route-specific modulepreload entries so hydration does not discover the page chunk late.
If production vext start sees an outdated manifest without route assets, it fails fast and asks for a rebuild.
Validation
Use the consumer validation route:
It checks real browser navigation, frontend resource status, route preload, hydration marker, and size-report.json.