T
TanStack7mo ago
harsh-harlequin

Get Initial Values

Has any way I can get the initialValues of the form? Like, i have right know a array of items, and a function to remove, that removal trigger the "isDirty", but I need to know exacly the field removed, so I can removed afwards. I know in some place this state exists, because is called when we use the reset() function.
2 Replies
broad-brown
broad-brown7mo ago
are you looking for form.options.defaultValues? you can also use field.isDefaultValue
harsh-harlequin
harsh-harlequinOP7mo ago
ow! nice!

Did you find this page helpful?