Function: useSyncStore()
useSyncStore<
R
>(subscribe
,getSnapshot
):R
Same as React.useSyncExternalStore with a support shim for lower React versions.
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
| |
| () => |
Returns
R
useSyncStore<
R
>(subscribe
,getSnapshot
):R
Same as React.useSyncExternalStore with a support shim for lower React versions.
Type Parameter |
---|
|
Parameter | Type |
---|---|
| |
| () => |
R