Skip to content

Commit

Permalink
Fix fetcher.submit fetcherKey option
Browse files Browse the repository at this point in the history
  • Loading branch information
jhartling committed Jun 15, 2024
1 parent 4e85e98 commit c98756e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
- jenseng
- JeraldVin
- JesusTheHun
- jhartling
- jimniels
- jmargeta
- johnpangalos
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1720,9 +1720,9 @@ export function useFetcher<TData = any>({
let submit = React.useCallback<FetcherSubmitFunction>(
(target, opts) => {
submitImpl(target, {
...opts,
navigate: false,
fetcherKey,
...opts,
});
},
[fetcherKey, submitImpl]
Expand Down

0 comments on commit c98756e

Please sign in to comment.