-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Type of loaderData
or actionData
is corrupted if return redirectWith...(...)
#35
Comments
|
Proven that we don't have to take an action for this issue |
yeah this seems like a react-router issue for sure, especially the 2nd comment you made. Please keep me posted on if this fixes it for you after they merge it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related:
If
return redirectWith...(...)
is used inaction
orloader
, the type ofactionData
orloaderData
in the component will be corrupted and contaminated withResponse
.The type of the original
redirect
in React Router has been fixed in 7.1.0 by the following PR:Therefore, you should upgrade React Router as
devDependencies
andpeerDependencies
to 7.1.0 or later.The text was updated successfully, but these errors were encountered: