Skip to content

Warn: Cannot read property 'push' of null ( in v2.0.0-beta3 ) #29

Closed
@mathieustan

Description

@mathieustan

1st Issue:

When I enter in a vue component using a registered vue-supply (with subscribes) , I get that error:
Cannot read property 'push' of null

This error comes from this line :

this._trackerHandles.push(handle)

this._trackerHandles is equal to null, and I couldn't find any reason.
in $stopMeteor method, this._trackerHandles is set to null, but it didn't get called.

Maybe we could do something like : if (!this._trackerHandles) this._trackerHandles = [];

2nd issue:

Vue component seems to have a cache.

1/ I load for the first time a component, everything works fine.
2/ Then, I leave this component by going to another route (so component is destroyed)
3/ Finaly, I come back into my inital component (changing route again)

Meteor data '${key}': Property already used in the component data, props or other

This error comes from this line:

if (hasProperty(this.$data, key) || hasProperty(this.$props, key) || hasProperty(this, key)) {

and more specificly from this statement : hasProperty(this, key)

My vue component already know key property

I think we should only check for (hasProperty(this.$data, key) || hasProperty(this.$props, key)

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