Skip to content

ObservableStrategy

ObservableStrategy<T> = object

Defined in: packages/three-flatland/src/observable/index.ts:62

Strategy that wires an observable value’s mutation surface and captures field snapshots for memoization. The public contract for teaching the observable system about a custom value type — call attach to make a value reactive, snapshot to memoize it.

T

readonly attach: (value, notify) => void

Defined in: packages/three-flatland/src/observable/index.ts:63

T

() => void

void


readonly snapshot: (value) => Snapshot

Defined in: packages/three-flatland/src/observable/index.ts:64

T

Snapshot