Remix Utils - v9.0.0
    Preparing search index...

    Function namedAction

    • 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<DataWithResponseInit<ResponsesUnion<Actions>>>

      The response from the action

      Action name not found

      Action "${name}" not found