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
Copy file name to clipboardExpand all lines: src/routes/reference/rendering/hydrate.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,13 @@ DOM node that contains the server-rendered markup.
58
58
59
59
-**Type:**`string`
60
60
61
-
Hydration render identifier.
61
+
Scopes hydration lookup to a specific rendered subtree.
62
62
63
63
#### `owner`
64
64
65
65
-**Type:**`unknown`
66
66
67
-
Owner used for the hydration root.
67
+
Owner used for the created hydration root.
68
68
69
69
## Return value
70
70
@@ -74,8 +74,8 @@ Dispose function for the hydrated root.
74
74
75
75
## Behavior
76
76
77
-
-`hydrate`reuses existing DOM instead of creating a new subtree.
78
-
-The target node is expected to contain server-rendered markup that matches the rendered output.
77
+
-`hydrate`is a client-only API and throws in the server bundle.
78
+
-`hydrate` reuses server-rendered DOM instead of creating a new subtree, locating nodes through Solid's hydration markers and optionally scoping that lookup with `renderId`.
79
79
- The returned function disposes the hydrated root.
80
80
81
81
## Examples
@@ -85,6 +85,7 @@ Dispose function for the hydrated root.
0 commit comments