Overview
Watch-factory runtime that provides keyed, reference-counted watch handles and zero-allocation listener dispatch hooks.
API Reference
Zero-allocation callback bundle for change, context-change, and cycle events.
export interface IWatchCallbacks {
onChanged: (change: IStateChange) => void;
onContextChanged: (change: IContextChanged) => void;
onStartChangeCycle: (cycle: IChangeCycleIndex) => void;
onEndChangeCycle: (cycle: IChangeCycleIndex) => void;
}import type { IWatchCallbacks } from '@rs-x/state-manager';4 members in this interface.
onChanged: (change: IStateChange) => voidType
(change: IStateChange) => void
onContextChanged: (change: IContextChanged) => voidType
(change: IContextChanged) => void
onEndChangeCycle: (cycle: IChangeCycleIndex) => voidType
(cycle: IChangeCycleIndex) => void
onStartChangeCycle: (cycle: IChangeCycleIndex) => voidType
(cycle: IChangeCycleIndex) => void