Otherwise
ref / conversations / Otherwise
A callback function to be invoked after a context object failed form validation.
A form action receives the rejected context object as the first argument.
If validation fails and an error is specified, it is possible to use Otherwise
Type Parameters
C
ts
C extends Context
Type
ts
(ctx: C) => unknown | Promise<unknown>