Skip to content
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]: shouldRevalidate missing FormData if action called by fetcher.submit returns (or throws) a redirect. #10176

Closed
nicksrandall opened this issue Mar 8, 2023 · 1 comment · Fixed by #10208
Labels

Comments

@nicksrandall
Copy link

What version of React Router are you using?

v6.8.2

Steps to Reproduce

  • Create action that throws a redirect.
  • Send "POST" to that action using fether.submit
  • Notice that shouldRevalidate is called but it does not include the formData that was originally sent.

Expected Behavior

  • I would expect that I would still have access to the formData that caused the redirect.

Actual Behavior

  • formData and formMethod are both undefined when action throws redirect.

As a side note, useSubmit works as expected.

@brophdawg11
Copy link
Contributor

This should be fixed in 6.10.0 👍

@brophdawg11 brophdawg11 removed the awaiting release This issue have been fixed and will be released soon label Mar 29, 2023
@brophdawg11 brophdawg11 removed their assignment Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants