mobx-sentinel API doc
    • Add a handler to the form with automatic cleanup

      Type Parameters

      • T extends object

      Parameters

      • form: Form<T>

        Form instance

      • event: "willSubmit"

        Event of the handler

      • handler: () => void

        Handler to add

      Returns void

      No memoization of the handler is needed as it is stored in a ref internally.

    • Add a handler to the form with automatic cleanup

      Type Parameters

      • T extends object

      Parameters

      • form: Form<T>

        Form instance

      • event: "submit"

        Event of the handler

      • handler: (abortSignal: AbortSignal) => Promise<boolean>

        Handler to add

      Returns void

      No memoization of the handler is needed as it is stored in a ref internally.

    • Add a handler to the form with automatic cleanup

      Type Parameters

      • T extends object

      Parameters

      • form: Form<T>

        Form instance

      • event: "didSubmit"

        Event of the handler

      • handler: (succeed: boolean) => void

        Handler to add

      Returns void

      No memoization of the handler is needed as it is stored in a ref internally.

    MMNEPVFCICPMFPCPTTAAATR