Model - BaseNode
API reference for src/nodes/BaseNode on @huukhanhnguyen/model, reachable from ..
See the Guide for the ModelJSON / evaluate pipeline.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
BaseNode
class
class BaseNodeMembers: _dependents, _epoch, _reads, compute, copy, dependents, display, evaluate, finishInit, getError, isDirty, isPending, isValid, owner, pending, remove, retractReads, setError, symbol, toJSON, value, valueType
markDependentsDirty
function
Dirty a node's dependents/parent chain WITHOUT re-dirtying the node itself — used after an async settle: this node just computed its fresh value, so what needs re-computing is whatever reads it, not the node itself.
markDependentsDirty(node: DirtyTarget): voidmarkDirty
function
markDirty(node: DirtyTarget, visited?: Set<DirtyTarget>, source?: DirtyTarget): voidsetDirty
function
Dirty a single node (no cascade) — the epoch-bumping counterpart to a bare node.isDirty = true write. Every direct dirty write in the engine must go through this (or markDirty) so an in-flight async compute is invalidated.
setDirty(node: DirtyTarget, source?: DirtyTarget): void