Skip to content

Update defaultValues #418

Answered by airjp73
scythewyvern asked this question in Q&A
Jan 15, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

there is currently no way to update defaultValues manually

The way to reset default values is with resetForm

onSubmitSuccess: () => form.resetForm(newDefaults)

Is there a case where that doesn't work?

I do think adding an option eventually that let's you reset the form reactively makes sense, but it's definitely possible to handle that case now.

Replies: 1 comment 1 reply

Comment options

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

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