-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fetcher.submit types #11631
Fix fetcher.submit types #11631
Conversation
🦋 Changeset detectedLatest commit: d207bb1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/react-router-dom/dom.ts
Outdated
@@ -150,7 +150,7 @@ function isFormDataSubmitterSupported() { | |||
return _formDataSupportsSubmitter; | |||
} | |||
|
|||
export interface SubmitOptions { | |||
export interface FetcherSubmitOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of directly definig these here, have a base private SharedSubmitOptions
that can be extended. That way it's not easy to add something fetcher-only and accidentally leak it to non-fetcher cases. Do this for FetcherFormProps
as well
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Fixes type issue from #11627