MCPcopy Index your code
hub / github.com/TanStack/router / ClientOnly

Function ClientOnly

packages/solid-router/src/ClientOnly.tsx:31–38  ·  view source on GitHub ↗
(props: ClientOnlyProps)

Source from the content-addressed store, hash-verified

29 * ```
30 */
31export function ClientOnly(props: ClientOnlyProps) {
32 const hydrated = useHydrated()
33 return (
34 <Solid.Show when={hydrated()} fallback={props.fallback ?? null}>
35 <>{props.children}</>
36 </Solid.Show>
37 )
38}
39
40/**
41 * Return a boolean indicating if the JS has been hydrated already.

Callers

nothing calls this directly

Calls 1

useHydratedFunction · 0.70

Tested by

no test coverage detected