MCPcopy Create free account
hub / github.com/dailydotdev/apps / useIsHydrated

Function useIsHydrated

packages/shared/src/hooks/useIsHydrated.ts:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 * never renders the server value.
19 */
20export function useIsHydrated(): boolean {
21 return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
22}

Callers 4

MainLayoutHeaderFunction · 0.90
FeedLayoutProviderFunction · 0.90
useLayoutVariantCookieFunction · 0.90
useLaptopLayoutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected