toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-react-core
/
react
/
useSyncExternalStore
use
Sync
External
Store
external
fun
<
Snapshot
>
useSyncExternalStore
(
subscribe
:
(
onStoreChange
:
(
)
->
Unit
)
->
Cleanup
,
getSnapshot
:
(
)
->
Snapshot
,
getServerSnapshot
:
(
)
->
Snapshot
=
definedExternally
)
:
Snapshot
(
source
)
Available since 18.0
See also
Discussion