-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
v-with not updating objects set via this.$set (breaking change from 0.11.5 to 0.11.6) #802
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
Comments
Same problem here. One of our developers ran into it this morning. In our app, removing v-with allowed us to get the app running again. Luckily we're just a couple of weeks of development in so there is not a lot that breaks by changing this. |
Pushed a fix to |
Sorry, I'm failing google or google's failing me, |
|
That didn't seem to do the trick ("version": "0.11.7", "_from": "git://github.com/yyx990803/vue#dev") |
Unfortunately still seems broken in 0.11.8 :( |
working in 0.11.5: broken in 0.11.6 through 0.11.8 edit/update: data: {
items: [{},{},{},{},{},{}],
parentObject: undefined // <--- added this
}, I'd say this wouldn't be too big a deal, although perhaps consider either
|
Turns out it was a small optimization attempt that wasn't carefully thought through: yyx990803/vue@5824751#diff-c052e1f68cd9ca32c302763fb617e335R123 It's now fixed for real in |
Hi there,
Don't have the problem isolated into a fiddle yet, but just a heads up that a use case for watching objects seems to have broken from 0.11.5 to 0.11.6 (We noticed this when a developer on my team got a new computer and was using the same code as us but the app wasn't working, noticed the difference in Vue versions, downgraded back to 0.11.5 everything was good)
Component Alpha watches its own property 'foo', which is passed in to it via
v-with
from the parent component Beta.In the template,
<div v-component="alpha" v-with="foo: parentFoo">
(not sure if this matters, but the component alpha is also in a v-repeat)Beta sets
parentFoo
in itscompiled
hook viathis.$set('parentFoo', {key1: val1, key2: val2})
In 0.11.6, the child component (alpha)'s
foo
will beundefined
Fiddle incoming (either lunch of after work)
The text was updated successfully, but these errors were encountered: