# Interface SubmitOptions

interface SubmitOptions {
action?: string;
encType?: FormEncType;
fetcherKey?: string;
method?: HTMLFormMethod;
navigate?: boolean;
preventScrollReset?: boolean;
relative?: RelativeRoutingType;
replace?: boolean;
state?: any;
unstable_flushSync?: boolean;
unstable_viewTransition?: boolean;
}

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:43

#####
Index

### Properties

action?
encType?
fetcherKey?
method?
navigate?
preventScrollReset?
relative?
replace?
state?
unstable_flushSync?
unstable_viewTransition?

## Properties

### `Optional` action

action?: string

The action URL path used to submit the form. Overrides `<form action>`. Defaults to the path of the current route.

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:53

### `Optional` encType

encType?: FormEncType

The encoding used to submit the form. Overrides `<form encType>`. Defaults to "application/x-www-form-urlencoded".

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:58

### `Optional` fetcherKey

fetcherKey?: string

Indicate a specific fetcherKey to use when using navigate=false

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:62

### `Optional` method

method?: HTMLFormMethod

The HTTP method used to submit the form. Overrides `<form method>`. Defaults to "GET".

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:48

### `Optional` navigate

navigate?: boolean

navigate=false will use a fetcher instead of a navigation

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:66

### `Optional` preventScrollReset

preventScrollReset?: boolean

In browser-based environments, prevent resetting scroll after this navigation when using the component

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:87

### `Optional` relative

relative?: RelativeRoutingType

Determines whether the form action is relative to the route hierarchy or the pathname. Use this if you want to opt out of navigating the route hierarchy and want to instead route based on /-delimited URL segments

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:82

### `Optional` replace

replace?: boolean

Set `true` to replace the current entry in the browser's history stack instead of creating a new one (i.e. stay on "the same page"). Defaults to `false`.

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:72

### `Optional` state

state?: any

State object to add to the history stack entry for this navigation

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:76

### `Optional` unstable_flushSync

unstable_flushSync?: boolean

Enable flushSync for this navigation's state updates

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:91

### `Optional` unstable_viewTransition

unstable_viewTransition?: boolean

Enable view transitions on this submission navigation

- Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/dom.d.ts:95