Skip to content

useSyncExternalStore

reference
1 min readUpdated

Kind: Function

Source: src/jsx/hooks/index.ts

Part of: Jsx

Signature

ts
function useSyncExternalStore(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot: () => T): T

Parameters

NameType
subscribe(callback: () => void) => () => void
getSnapshot() => T
getServerSnapshot() => T

Returns: T

Was this page helpful?

Download as PDF
useSyncExternalStore — Hono (narrator proof)