-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot assign to read only property '__typename' of object #4889
Comments
One strategy currently for me is to use
|
Where did that state originate form? |
Yes, forwarded via props. |
it happens with nested proxies. const result = {
__typename: 'a',
aType: 'string'
b: {
__typename: 'b',
bType: 'string'
}
} in this case |
I see, we can't use I will check if Can you provide a quick reproduction of this so I can test against? it will make it much easier for me to work on a fix. |
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.vee-validate/packages/vee-validate/src/useForm.ts
Line 1289 in f290933
The text was updated successfully, but these errors were encountered: