We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code works fine:
this.$vueSet({}, 'foo.0.bar'); // { "foo": [{ "bar": "some value" }] } this.$vueSet({}, 'foo.000'); // { "foo": ["some value"] }
However, the following code produces an error:
this.$vueSet({}, 'foo.000.bar'); // error TypeError: Cannot use 'in' operator to search for 'bar' in undefined
If I wrap it in a try/catch block, Vue still complains:
[Vue warn]: Cannot set reactive property on undefined, null, or primitive value: undefined
Is there some strategy for validating object paths? Considering foo.000 works, I also expect foo.000.bar to work.
foo.000
foo.000.bar
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following code works fine:
However, the following code produces an error:
If I wrap it in a try/catch block, Vue still complains:
Is there some strategy for validating object paths? Considering
foo.000
works, I also expectfoo.000.bar
to work.The text was updated successfully, but these errors were encountered: