-
-
Notifications
You must be signed in to change notification settings - Fork 67
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]: Oops! useActionData must be used within a data router. On document load with useForm - on document initial load #410
Comments
Hi! The issue doesn't reproduce when I follow those steps. Could you provide a Code sandbox (or similar) instead that contains the issue? |
@airjp73 I attempted to recreate with Stackblitz even though they only have node 18 and RR needs 20. It worked as expected. I then tested against node 20 and node 22 locally. The issue is node 23 it seems. I'll rollback to node 22 personally. I wonder why rr7/other libs worked fine with 23 and rvf had an issue? |
Thanks for looking into that! My best guess is a change to dependency resolution in npm somehow causing rvf to resolve a different version of RR than the rest of the app. But I won't have time to test that hypothesis until at least tomorrow. What happens when you |
Unfortunately ,it is all rr 7.0.2.
|
The react-router repo has an issue here that looks related. I was also able to reproduce on Node 22 and up, which lines up with what they report in this issue. |
Don't know, what's causing the error but i solved it by downgrading vite from |
I had this issue as well, moving Vite from 6.x to 5.x like @miran248 also fixed it for me. |
Updating to node v22.13.0 fixed this for me. My package.json:
|
Which packages are impacted?
@rvf/react
@rvf/react-router
@rvf/zod
@rvf/yup
zod-form-data
What version of these packages are you using?
Please provide a link to a minimal reproduction of the issue.
copy and paste in steps to reproduce
Steps to Reproduce the Bug or Issue
npx create-react-router@latest rvf-rr7
Expected behavior
I would expect the page to render on document initial load.
Screenshots or Videos
No response
Platform
macOS, Chrome, latest
Additional context
No response
The text was updated successfully, but these errors were encountered: