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

Function useHydrated

packages/solid-router/src/ClientOnly.tsx:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 * @returns True if the JS has been hydrated already, false otherwise.
58 */
59export function useHydrated(): Solid.Accessor<boolean> {
60 const [hydrated, setHydrated] = Solid.createSignal(false)
61 Solid.onMount(() => {
62 setHydrated(true)
63 })
64 return hydrated
65}

Callers 5

useLinkPropsFunction · 0.90
HeadContentFunction · 0.90
RootComponentFunction · 0.90
RootComponentFunction · 0.90
ClientOnlyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected