form-graph
    Preparing search index...

    Type Alias EffectFn<State, Ext>

    EffectFn: (
        ctx: RuleCtx<State, Ext>,
    ) => Record<string, unknown> | undefined | void

    The general form: ONE callback for a decision that spans keys. Runs on every patch (no trigger key), checks ctx.patch itself, returns keys to add. Prefer the keyed map when a single field triggers the reaction.

    Type Parameters

    • State
    • Ext = unknown

    Type Declaration

      • (ctx: RuleCtx<State, Ext>): Record<string, unknown> | undefined | void
      • Parameters

        Returns Record<string, unknown> | undefined | void