Optionalaction: stringThe action to append to the closest route URL. Defaults to the closest route URL.
Options
Optionalrelative?: RelativeRoutingTypeThe relative routing type to use when resolving the
action. Defaults to "route".
The resolved action URL.
Resolves the URL to the closest route in the component hierarchy instead of the current URL of the app.
This is used internally by Form to resolve the
actionto the closest route, but can be used generically as well.basenameif your app specifies one, so that it can be used with raw<form>elements in a progressively enhanced way. If you are using this to provide anactionto<Form>orfetcher.submit, you will need to remove thebasenamesince both of those will prepend it internally.