#setting initial form values
1 messages · Page 1 of 1 (latest)
you can use form.setValues
do your fetch first then just overwrite it with that
if you want to set it up so you can "reset the form" to the fetched initialValues, older versions do not support this in the form object itself
you'd need to store that in separate state and then use form.setValues to "reset" it to the fetched values
You can use the latest version of @mantine/form with any version of @mantine/core