Sanity Library Reference Docs
Preparing search index...
@sanity/workflow-react
observer
DocStore
Interface DocStore<T>
A
useSyncExternalStore
-shaped reactive state source.
interface
DocStore
<
T
>
{
getSnapshot
:
()
=>
ObserverState
<
T
>
;
subscribe
:
(
onChange
:
()
=>
void
)
=>
()
=>
void
;
}
Type Parameters
T
Index
Properties
get
Snapshot
subscribe
Properties
get
Snapshot
getSnapshot
:
()
=>
ObserverState
<
T
>
subscribe
subscribe
:
(
onChange
:
()
=>
void
)
=>
()
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
get
Snapshot
subscribe
Sanity Library Reference Docs
Loading...
A
useSyncExternalStore-shaped reactive state source.