Draft
Defined in: core/src/store/types.ts:204
What is shown over the committed data, in two layers. Renderers read a
task’s values with selectTaskPatch.
- The committed layer (controlled data only): change sets committed with
applyChangeSet(and the rollback of a session) that the owner has not applied yet. They are part of the data until the owner’s nextsetTasks, which alone clears the layer (setLinks,setOptions, previews and further commits keep it), so edit sessions and the history count it (selectCommittedPatch). - The preview layer on top: the change set of
setDraft, e.g. a drag preview; replaced or removed by the nextsetDraft, removed byapplyChangeSetandsetTasks.
changeSet and patches are the combined overlay that is drawn; with one layer they are that
layer’s own. Deeply frozen.
Extends
Section titled “Extends”Properties
Section titled “Properties”changeSet
Section titled “changeSet”
readonlychangeSet:ChangeSet
Defined in: core/src/store/types.ts:206
The preview’s change set when there is one, else the committed layer’s.
Overrides
Section titled “Overrides”committed
Section titled “committed”
readonlycommitted:boolean
Defined in: core/src/store/types.ts:213
true exactly when there is a committed layer: a committed change the owner of controlled
data has not applied yet, also under a preview. false for a preview alone.
committedLayer
Section titled “committedLayer”
readonlycommittedLayer:DraftLayer|undefined
Defined in: core/src/store/types.ts:215
The committed layer; undefined without one.
patches
Section titled “patches”Defined in: core/src/store/types.ts:208
The committed layer’s patches with the preview’s over them (where both change a task).
Overrides
Section titled “Overrides”previewLayer
Section titled “previewLayer”
readonlypreviewLayer:DraftLayer|undefined
Defined in: core/src/store/types.ts:217
The preview layer; undefined without one.