You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4895d53
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/hydrate-mid-parse-shell-3971.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ fix(web): `hydrate()` started mid-parse waits for the end of the shell (#3971)
6
6
7
7
An `async` client entry can run while the browser is still parsing the server shell. `hydrate()` then gathered only the `_hk` nodes parsed so far, created fresh client nodes for the rest, and left the server copies parsed afterwards in the document, dead (no listeners, no bindings).
8
8
9
-
Every render now ends its shell with a small marker script, after its records. When `hydrate()` starts before that marker has run and the parser is still working, it parks until the marker runs (or `DOMContentLoaded`, if none comes), then hydrates against the complete shell. Streamed fragments arrive after the shell and are claimed as before, so streaming still hydrates before the stream ends. No API change; `noScripts` renders and hand-built `_$HY` objects are unaffected.
9
+
A render that emits `<HydrationScript />`now ends its shell with a small marker script, after its records, and its bootstrap declares the ledger the marker writes to. When `hydrate()` starts before that marker has run and the parser is still working, it parks until the marker runs (or `DOMContentLoaded`, if none comes), then hydrates against the complete shell. Streamed fragments arrive after the shell and are claimed as before, so streaming still hydrates before the stream ends. No API change. A host-placed bootstrap (`generateHydrationScript()`: hand-built documents, islands hosts such as Astro that await each island's children themselves) declares no ledger and never parks; renders without `<HydrationScript />` and `noScripts` renders are byte-identical.
0 commit comments