Skip to content

With remix-hook-form #257

Answered by sergiodxa
otatar asked this question in Q&A
Nov 14, 2023 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

The context property must be formData, not just data.

Also is that data returned by getValidatedFormData a FormData instance? or a plain object? You need to pass a FormData object.

I recommend you to clone the request here await getValidatedFormData<FormData>(request.clone(), resolver);.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@sergiodxa
Comment options

Answer selected by otatar
@otatar
Comment options

@sergiodxa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants