Open flakerimi opened 4 years ago
@flakerimi did you check for what exactly is this
? are you in the nuxt context? what happens when you console.log(this.$toast)
Well its undefined
Uncaught (in promise) TypeError: Cannot read property '$toast' of undefined
interesting, in
postsCollection.get() .then({ here we can access 'this' console.log(this) // VueComponent{} })
postsCollection.add({...}) .then({ here we can't access 'this' console.log(this) // undefined })
Why I cannot call from AddPost
Its driving me crazy