• Runs an action based on the FormData's action name

    Type Parameters

    • Actions extends ActionsRecord

    Parameters

    • formData: FormData

      The FormData to parse for an action name

    • actions: Actions

      The map of actions to run

    Returns Promise<UNSAFE_DataWithResponseInit<ResponsesUnion<Actions>>>

    The response from the action

    Action name not found

    Action "${name}" not found