Sanity Library Reference Docs
Preparing search index...
@sanity/visual-editing
react
createDocumentMutator
Function createDocumentMutator
createDocumentMutator
(
comlink
:
VisualEditingNode
,
)
:
StateMachine
<
{}
,
|
WelcomeEvent
|
ReconnectEvent
|
MutationEvent
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
,
{
[
x
:
string
]:
|
undefined
|
ActorRefFromLogic
<
PromiseActorLogic
<
undefined
|
void
|
SanityDocument
<
Record
<
string
,
any
>
>
,
{}
,
EventObject
,
>
,
>
|
ActorRefFromLogic
<
PromiseActorLogic
<
void
,
{}
,
EventObject
>
>
|
ActorRefFromLogic
<
ObservableActorLogic
<
WelcomeEvent
|
ReconnectEvent
|
MutationEvent
,
{}
,
EventObject
,
>
,
>
;
}
,
Values
<
{}
>
,
Values
<
{}
>
,
never
,
"fetchRemoteSnapshotTimeout"
|
"submitTransactionsTimeout"
,
"disconnected"
|
"connecting"
|
"reconnecting"
|
"connectFailure"
|
{}
,
"error"
|
"busy"
|
"ready"
,
DocumentMutatorMachineInput
,
NonReducibleUnknown
,
EventObject
,
MetaObject
,
{}
,
>
Parameters
comlink
:
VisualEditingNode
Returns
StateMachine
<
{}
,
|
WelcomeEvent
|
ReconnectEvent
|
MutationEvent
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
|
{}
,
{
[
x
:
string
]:
|
undefined
|
ActorRefFromLogic
<
PromiseActorLogic
<
undefined
|
void
|
SanityDocument
<
Record
<
string
,
any
>
>
,
{}
,
EventObject
,
>
,
>
|
ActorRefFromLogic
<
PromiseActorLogic
<
void
,
{}
,
EventObject
>
>
|
ActorRefFromLogic
<
ObservableActorLogic
<
WelcomeEvent
|
ReconnectEvent
|
MutationEvent
,
{}
,
EventObject
,
>
,
>
;
}
,
Values
<
{}
>
,
Values
<
{}
>
,
never
,
"fetchRemoteSnapshotTimeout"
|
"submitTransactionsTimeout"
,
"disconnected"
|
"connecting"
|
"reconnecting"
|
"connectFailure"
|
{}
,
"error"
|
"busy"
|
"ready"
,
DocumentMutatorMachineInput
,
NonReducibleUnknown
,
EventObject
,
MetaObject
,
{}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...