Skip to content
Source
Sign inSign up
TanStack/router

docs: change hydration target to document.body in custom client.tsx for Solid #5091

Mergedjakst(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5091/headmerged by brenelz(GitHub profile, opens in a new tab)

Showing 1 changed file with 1 addition and 1 deletion.

x
0 of 1 viewed, 1 left
1 addition and 1 deletiondocs/start/framework/solid/learn-the-basics.mdModified
View file
@@ -85,7 +85,7 @@
​
const router = createRouter()
​
-hydrate(() => <StartClient router={router} />, document)
+hydrate(() => <StartClient router={router} />, document.body)
```
​
This enables us to kick off client-side routing once the user's initial server request has fulfilled.