Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Nov 8, 2023
1 parent e192105 commit 7f48633
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react-router-dom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,11 @@ export interface FetcherFormProps
* `event.preventDefault()` then this form will not do anything.
*/
onSubmit?: React.FormEventHandler<HTMLFormElement>;

/**
* Enable flushSync navigation's staten updates
*/
unstable_flushSync?: boolean;
}

export interface FormProps extends FetcherFormProps {
Expand Down Expand Up @@ -1172,11 +1177,6 @@ export interface FormProps extends FetcherFormProps {
*/
state?: any;

/**
* Enable flushSync navigation's staten updates
*/
unstable_flushSync?: boolean;

/**
* Enable view transitions on this Form navigation
*/
Expand Down Expand Up @@ -1598,7 +1598,7 @@ export type FetcherWithComponents<TData> = Fetcher<TData> & {
FetcherFormProps & React.RefAttributes<HTMLFormElement>
>;
submit: FetcherSubmitFunction;
load: (href: string) => void;
load: (href: string, opts?: { unstable_flushSync?: boolean }) => void;
};

// TODO: (v7) Change the useFetcher generic default from `any` to `unknown`
Expand Down

0 comments on commit 7f48633

Please sign in to comment.