FormApi setup in RVF v6: Unexpected fetcherKey and navigate props requirement #388
carlysandler
started this conversation in
General
Replies: 1 comment 2 replies
-
I haven't run into this issue before, and the error message isn't what I expect for a missing, required prop -- have you had any luck reproducing this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
"@remix-run/react": "1.19.3"
"@remix-run/node": "1.19.3",
"@remix-run/serve": "1.19.3",
"@rvf/remix": "^6.1.1",
"remix-validated-form": "^4.6.8",
Description
While migrating from remix-validated-form to RVF v6, I encountered an unexpected issue with the new FormApi setup.
Steps to Reproduce
ValidatedForm
to the new FormApi setup.Observed Behavior
The linter reports errors stating that
fetcherKey
andnavigate
are not defined inrvfProps
.Expected Behavior
Based on the documentation and example code snippets, these props are not mentioned as required, nor are their use cases explained in detail.
Workaround
To satisfy the linter, I set the props and defined them as
undefined
:Usage
Here's a simplified version of my component showcasing the issue:
Questions
@remix-run/react
?fetcherKey
andnavigate
props?Additional Context
This issue is not apparent from the example code snippets in the documentation, which might lead to confusion for other users migrating to RVF v6.
Beta Was this translation helpful? Give feedback.
All reactions