Logos DX
    Preparing search index...

    Interface StateEventData<S>

    Event data for state mutation events.

    interface StateEventData<S = unknown> {
        current: S;
        key?: keyof S;
        previous?: S;
        value?: S[keyof S] | Partial<S>;
    }

    Type Parameters

    • S = unknown

      Instance state type

    Index

    Properties

    current: S

    Current state after the change

    key?: keyof S

    Key that was set (for single key updates)

    previous?: S

    Previous state before the change

    value?: S[keyof S] | Partial<S>

    Value that was set