Skip to content
Discussion options

You must be logged in to vote

I think that when Remix calls your serverAction, it's also processing the request again, so that's why you get the error.

Try using await request.clone().formData()

This clones the request in the clientLoader so you won't get the error.

https://developer.mozilla.org/en-US/docs/Web/API/Request/clone

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bobbysciacchitano
Comment options

@kennygoff
Comment options

@gustavopch
Comment options

@sergiodxa
Comment options

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