[Vuejs]-Vue meteor on subscription ready hook?

0👍

If you use data from the subscription in your template, you can do something like:

beforeUpdate() {
  if (this.$subReady['gps']) {
    // do something
  }
}

I do it this way in my app and so far it works fine. The problem is when you don’t use data in the template because update hook isn’t fired.

Leave a comment