used control/notify/pause scope about changes in current context

interface ControlScope<T extends Context> {
    checkNoChanges(): void;
    detach(): void;
    emitChanges(propertyKey?: keyof T, propertyValue?: any): void;
    isAttached(): boolean;
    reattach(): void;
}

Type Parameters

Implemented by

Methods

  • apply changes now, will not effect the state of the detector wither if attached ot not.

    if a propertyKey is provided, will emit this property only

    Parameters

    • OptionalpropertyKey: keyof T
    • OptionalpropertyValue: any

    Returns void