meteor-vue / vue-meteor-tracker

Use Meteor Tracker reactivity inside Vue components
90 stars 20 forks source link

this undefined in Reactive data #76

Closed harry-73 closed 2 years ago

harry-73 commented 2 years ago

I use vue3 and vue-meteor-tracker 3.0.0beta3.

When I try to use 'this' in Reactive data, i got undefined. It worked with vue2.6.14.

Akryum commented 2 years ago

Could you try again with 3.0.0-beta.4? :pray:

harry-73 commented 2 years ago

I confirm. Now, it works. Thanks.

harry-73 commented 2 years ago

In fact, it works when I use for example 'this.$store...' but not if I use 'this' with variables defined into 'data()' or 'computed()'. It is still undefined.

harry-73 commented 2 years ago

@Akryum had you time to look at it?

Thanks