reset, restart and initialize should take InitialFormValues instead of FormValues
kkirby opened this issue · comments
reset, restart and initialize all currently accept the type FormValues
, though, I would argue that it should be InitialFormValues
. If you pass a partial object, then the form will be created with only some fields set, which I believe is expected. That means the object passed does not have to be an object containing all of the form values, so it should be InitialFormValues
instead of FormValues
.
restart:
Line 988 in 19e66f1
reset:
Line 940 in 19e66f1
initialize:
Lines 755 to 757 in 19e66f1
Published fix in v4.20.3
.