Open hinogi opened 1 week ago
One strategy currently for me is to use structuredClone
on the value before assigning them to initalValues
let initialValues = {};
initialValues.a = structuredClone(something.maybeproxy)
resetForm({ values: initalValues })
Where did that state originate form? Vue-apollo
?
Yes, forwarded via props.
It seems there is an issue here where some properties are readonly because it seems to be another proxy object. This results in unexpected error messages when simply assigning values to
initalValues
because it seems to try to reassign proxied properties which are writable: false.https://github.com/logaretm/vee-validate/blob/f290933462db3e3499e158eef136bb30e5bc3942/packages/vee-validate/src/useForm.ts#L1289