Remote / foldkit-remote

MutationStarted

interface · packages/remote/src/index.ts:425

interface MutationStarted<AppModel> {
  readonly model: AppModel
  readonly requestId: string
  readonly tempId: string
  readonly command: Command<RemoteMessage, never, RemoteClient>
}

What RemoteDomain.mutate hands update: the Model with the request started, and the Command that settles it.

In the guides

Members

MutationStarted.model

property · packages/remote/src/index.ts:426

readonly model: AppModel

MutationStarted.requestId

property · packages/remote/src/index.ts:427

readonly requestId: string

MutationStarted.tempId

property · packages/remote/src/index.ts:428

readonly tempId: string

MutationStarted.command

property · packages/remote/src/index.ts:430

readonly command: Command<RemoteMessage, never, RemoteClient>

Yields MutationSucceeded or MutationFailed; never fails.