Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

hydrateStart.ts

12 lines454 Bytes

1import { hydrateStart as coreHydrateStart } from '@tanstack/start-client-core/client'
2import type { AnyRouter } from '@tanstack/router-core'
3​
4/**
5 * Solid-specific wrapper for hydrateStart that signals hydration completion
6 */
7export async function hydrateStart(): Promise<AnyRouter> {
8 const router = await coreHydrateStart()
9 // Signal that router hydration is complete so cleanup can happen if stream has ended
10 window.$_TSR?.h()
11 return router