SyncExternalStore.subscribe Property
The subscribe
function to pass as the 1st argument to useSyncExternalStore
.
Signature
subscribe: (onStoreChange: (value: T) => void) => () => void;
The subscribe
function to pass as the 1st argument to useSyncExternalStore
.
subscribe: (onStoreChange: (value: T) => void) => () => void;