useSyncExternalStore<T> function
T
useSyncExternalStore<T>(
- StoreSubscribe subscribe,
- Snapshot<
T> getSnapshot, [ - Snapshot<
T> ? getServerSnapshot
Subscribes to an external store with an SSR snapshot when provided.
Implementation
T useSyncExternalStore<T>(
StoreSubscribe subscribe,
Snapshot<T> getSnapshot, [
Snapshot<T>? getServerSnapshot,
]) => currentReactRuntime.binding.useSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot,
);