Skip to content

Commit 30e49f0

Browse files
committed
update
1 parent 2b3e4f9 commit 30e49f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/routes/reference/rendering/hydrate.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ DOM node that contains the server-rendered markup.
5858

5959
- **Type:** `string`
6060

61-
Hydration render identifier.
61+
Scopes hydration lookup to a specific rendered subtree.
6262

6363
#### `owner`
6464

6565
- **Type:** `unknown`
6666

67-
Owner used for the hydration root.
67+
Owner used for the created hydration root.
6868

6969
## Return value
7070

@@ -74,8 +74,8 @@ Dispose function for the hydrated root.
7474

7575
## Behavior
7676

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`.
7979
- The returned function disposes the hydrated root.
8080

8181
## Examples
@@ -85,6 +85,7 @@ Dispose function for the hydrated root.
8585
```ts
8686
import { hydrate } from "solid-js/web";
8787

88+
// #app already contains server-rendered Solid markup
8889
const dispose = hydrate(() => <App />, document.getElementById("app")!);
8990
```
9091

0 commit comments

Comments
 (0)