Skip to content

Can't read formData in a parametrized route? #1826

Closed Answered by shamsup
Swizec asked this question in Q&A
Discussion options

You must be logged in to vote

I think the issue is that your inputs don't have names, so your post request from the form doesn't actually have a body. Remix should probably not die in this case, but it will also be avoided by providing a body by adding the name attribute to your input fields.

Replies: 1 comment 3 replies

Comment options

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

@ryanflorence
Comment options

@Swizec
Comment options

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