You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fetcherKey is only used with Form/useNavigate - we had a TS bug that it was shown as an option in fetcher.submit that was fixed in #11631 and will be available in the next release.
Fetcher keys are specified at the hook call site via useFetcher({ key })
What version of React Router are you using?
6.23.1
Steps to Reproduce
Use
fetcher.submit()
with thefetcherKey
option specified:Expected Behavior
The fetcher is submitted using the supplied
fetcherKey
infetcher.submit()
.Actual Behavior
The
fetcherKey
supplied infetcher.submit()
is ignored. You can see here it's always overwritten:https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/index.tsx#L1709
The text was updated successfully, but these errors were encountered: