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
-
objectSubmitOptions
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
useSubmitwith no action does.
- Method
get,post,put,patchordelete, in any case. Null or empty isget, 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.