-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
There seems to be no way to use Vue's merge strategies when assigning new data to a mounted instance. Mixins and vm.$options = Vue.util.mergeOptions(vm.$options, {data: x => newData}, vm)
aren't reactive.
Something like vm.$merge(newData)
or vm.$mixin({data: newData})
would be nice. The ability to add mixins on the fly would make Vue very flexible (vm.$mixin({computed: {x: newFn}})
would be a neat way to reactively change computed
functions, for example), but $merge
is probably much easier to implement.
Metadata
Metadata
Assignees
Labels
No labels