Table of Contents

Class SubmitOptions

Namespace
Velvet
Assembly
Velvet.Docs.dll

How SubmitFunction and SubmitAsync(object?, SubmitOptions?, CancellationToken) submit: React Router's SubmitOptions.

public sealed class SubmitOptions
Inheritance
object
SubmitOptions

Properties

Action

The path to submit to, absolute or relative. Null or empty submits to the route the submitting component renders in, with the current query string, as useSubmit with no action does.

Method

get, post, put, patch or delete, in any case. Null or empty is get, which navigates with the form data as the query string and runs no action. Any other method runs none either: the navigation commits React Router's 405 error in its place.

Replace

True replaces the current history entry and false pushes one. Null replaces for a mutation submitted to the current location whose action does not fail, and pushes otherwise.