FormAction
ref / conversations / FormAction
An action to perform after a context object passed form valiation.
A form action receives the validated context object as the first argument. It receives the extracted value as a second argument.
Type Parameters
C
ts
C extends Context
T
ts
T
Type
ts
(ctx: C, result: T) => unknown | Promise<unknown>