-
-
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
[Bug]: useFetcher options navigate true does not work #11627
Comments
Additionally, I would like collaborators to explicitly mention that when "navigate" is set to false for fetcher, the global navigation state does not become "submitting". This should be outlined somewhere in the docs since it is an essential piece of information that cannot be found either in docs or StackOverflow / reddit / etc. The terminology as "not cause navigation" is hard to understand and realize all its implications. Maybe you should describe what you mean by navigation in your lib somewhere in the docs and make link to that page so the newbies like me could understand it |
Fetchers never trigger a navigation. Looks like we might have a small TS bug that shows navigate as an option in
Fetchers are never navigations - they are specifically when you don't want a navigation, as outlined in the top of the useFetcher docs.
A navigation is defined as something that operates modifies the |
@brophdawg11 While you are not wrong about useFetcher it doesn't say explicitly what it means by "But sometimes you want to call a loader outside of navigation". |
We're always open to feedback on the documentation! I'm just not sure I understand what's lacking because, as you said, I am not looking at it through an end-user's eyes. Would you like to open a PR with the changes that would make it more clear? The types have been updated in #11631 so that |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.23.1
Steps to Reproduce
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: