-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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]: When submitting a <Form>, the state overwrites to null #10629
Comments
This is because we're doing a navigation that you don't have direct access to. Your best bet is to send over the state data as a |
Going to reopen since I asked Josh to open this 😄 I think the bug is not so much that we don't preserve externally-set |
This is fixed in #10630 and should be available in the next release ( |
What version of React Router are you using?
Lastest
Steps to Reproduce
location.state
<Form>
Expected Behavior
It would be great it would could pass in the current state or new state via
<Form state>
(like the<Link>
component)Actual Behavior
There is no ability to send state with a
<Form>
navigation and it automatically resets tonull
The text was updated successfully, but these errors were encountered: