SubscribeReadsObserver: (commit: Commit, value: T) => void

Per-projection observer callback for Graph.subscribeReads (#701, SPEC ยง11.1 amended).

Type Parameters

  • T

    Value type produced by the projection closure.

Type declaration

    • (commit: Commit, value: T): void
    • Parameters

      • commit: Commit

        The just-published Commit whose changedNodes intersected the projection's recorded read-set.

      • value: T

        The projection re-evaluated under the engine's tracking accessor at fire-time, so observers see the post-commit value without needing to call Graph.read themselves.

      Returns void