valtio-fsm

    Type Alias ContextChangeListener<TContext>

    ContextChangeListener: (
        context: TContext,
        changes: { key: string; previousValue: unknown; value: unknown }[],
    ) => void

    Listener function for context property changes

    Type Parameters

    • TContext

      Context data type for the state machine

    Type declaration

      • (
            context: TContext,
            changes: { key: string; previousValue: unknown; value: unknown }[],
        ): void
      • Parameters

        • context: TContext
        • changes: { key: string; previousValue: unknown; value: unknown }[]

        Returns void

    MMNEPVFCICPMFPCPTTAAATR