T
TanStack4mo ago
genetic-orange

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
extended-salmon
extended-salmon4mo ago
are you looking for form.options.defaultValues? you can also use field.isDefaultValue
genetic-orange
genetic-orangeOP4mo ago
ow! nice!

Did you find this page helpful?