Skip to content

Component multiple extension data inheritance broken in 0.11 #594

Closed
@Jabher

Description

@Jabher

following technic not working in 0.11

var WidgetComponent = Vue.component({
data: function(){return {items: []}}
});
var WidgetWithCounterComponent = WidgetComponent.extend({
data: function(){return {count: 0}}
});

Data is now a function that gets overriden, so that this.items becomes not available.
Not quite sure if it's correct behaviour, as I've used this technic before and it was OK.

Using special merge function as a solution, but have a feeling that i'm doing it in wrong way.

Still, did not try to use mixins for object extension yet - migrated to 0.11 yesterday. Great work, btw, extreme performance increase, up to 2 or 3 times in most of the app bottlenecks.

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