-
-
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
useActionData
receives data from wrong action
#11022
Comments
This is fixed by #11023 and will be available in the next release 👍 |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
This doesn't seem to be a bug, but rather a feature. Looking at the
I would say that what you are experiencing is the expected behaviour |
@nicolas-besnard - "most recent route action" is referring to the current contextual route in context, not any route in the tree. Otherwise, |
What version of Remix are you using?
2.2.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Steps:
parent.tsx
(and notice that it posts to the correct action handler)parent.child.tsx
and notice thatparents.tsx
also updates to data fromparent.child.tsx
Expected Behavior
that the component in
parent.tsx
only gets data from the action defined inparent.tsx
.Actual Behavior
When submitting
parent.child.tsx
, the component inparent.tsx
receives data fromaction
inparent.child.tsx
.Screen.Recording.2023-11-14.at.12.28.56.mov
The text was updated successfully, but these errors were encountered: