Remote / foldkit-remote

MutationStarted

interface · packages/remote/src/domain.ts:448

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/domain.ts:449

readonly model: AppModel

MutationStarted.requestId

property · packages/remote/src/domain.ts:450

readonly requestId: string

MutationStarted.tempId

property · packages/remote/src/domain.ts:451

readonly tempId: string

MutationStarted.command

property · packages/remote/src/domain.ts:453

readonly command: Command<RemoteMessage, never, RemoteClient>

Yields MutationSucceeded or MutationFailed; never fails.