Skip to content

v-with not updating objects set via this.$set (breaking change from 0.11.5 to 0.11.6) #802

Closed
@cheapsteak

Description

@cheapsteak

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 its compiled hook via this.$set('parentFoo', {key1: val1, key2: val2})

In 0.11.6, the child component (alpha)'s foo will be undefined

Fiddle incoming (either lunch of after work)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions