react / useSyncExternalStore
| Type Parameter |
|---|
Snapshot |
| Parameter | Type | Description |
|---|---|---|
subscribe |
(onStoreChange: () => void) => () => void |
|
getSnapshot |
() => Snapshot |
|
getServerSnapshot? |
() => Snapshot |
- |
Snapshot
https://github.com/reactwg/react-18/discussions/86
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:2168