Skip to content

Commit 2aed1d8

Browse files
committed
work on hydration
1 parent 5354deb commit 2aed1d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

e2e/solid-start/basic/src/client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import { StartClient, hydrateStart } from '@tanstack/solid-start/client'
55

66
console.log("[client-entry]: using custom client entry in 'src/client.tsx'")
77

8-
const router = await hydrateStart()
9-
10-
hydrate(() => <StartClient router={router} />, document)
8+
hydrateStart().then((router) => {
9+
hydrate(() => <StartClient router={router} />, document)
10+
})

packages/solid-start/src/default-entry/client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { hydrate } from 'solid-js/web'
22
import { hydrateStart } from '@tanstack/start-client-core/client'
33
import { StartClient } from '@tanstack/solid-start/client'
44

5-
const router = await hydrateStart()
6-
7-
hydrate(() => <StartClient router={router} />, document)
5+
hydrateStart().then((router) => {
6+
hydrate(() => <StartClient router={router} />, document)
7+
})

0 commit comments

Comments
 (0)