Closed davecoates closed 1 year ago
Currently it's
initialValues?: FormValues | ViewModelInterface<any, any>;
and has this logic:
if (isViewModelInstance(initialValues)) { initialValues = initialValues.serializeToForm(); }
... but serializerToForm isn't a function on view model
serializerToForm
And initialValues should accept Partial<FormValues>
Partial<FormValues>
I think just remove initialValues handling entirely from form and just do whatever final-form does and use it's types
initialValues
Fixed in d241ff8fc33e406e3660da999e37c8689f962e60
Currently it's
and has this logic:
... but
serializerToForm
isn't a function on view modelAnd initialValues should accept
Partial<FormValues>
I think just remove
initialValues
handling entirely from form and just do whatever final-form does and use it's types