Skip to content

Append fields that aren't in the form during submission? Remix+zod #276

Answered by edmundhung
justintoman asked this question in Q&A
Discussion options

You must be logged in to vote

That's how I will do as well. It's better to avoid sending data that you already know and limit itto fields that you allow your user to change. e.g. you can create a sub-schema by picking fields you actually accepted and reconstruct the object later by querying the rest of the fields from db.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edmundhung
Comment options

Answer selected by justintoman
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