Open History to see the last commit
1import {
2 idle as coreIdle,
3 withHydrationRenderer,
4} from '@tanstack/start-client-core/hydration'
5import { GenericHydrate } from '../GenericHydrate'
6import type {
7 HydrationPrefetchStrategy,
8 IdleHydrationOptions,
9} from '@tanstack/start-client-core/hydration'
10import type { SolidHydrationStrategy } from '../Hydrate'
11β
12/* @__NO_SIDE_EFFECTS__ */
13export function idle(
14 options: IdleHydrationOptions = {},
15): SolidHydrationStrategy<'idle', true> & HydrationPrefetchStrategy<'idle'> {
16 return /* @__PURE__ */ withHydrationRenderer(
17 coreIdle(options),
18 GenericHydrate,
19 )
20}