Skip to content

Function: dispatch() ​

dispatch(history, op): History

Defined in: packages/core/src/history.ts:18

Appends op at the current position, discarding any redo tail. An op whose id already exists anywhere in the log is ignored, which makes retried dispatches idempotent.

Parameters ​

history ​

History

op ​

OperationBase

Returns ​

History