vue-cli-plugin-prerender-spa icon indicating copy to clipboard operation
vue-cli-plugin-prerender-spa copied to clipboard

queries and x-app-rendered

Open Spica2 opened this issue 6 years ago • 0 comments

  mounted: () => {
    this.$nextTick( function () {
      // Code that will run only after the
      // entire view has been rendered
      document.dispatchEvent(new Event("x-app-rendered"))
    })
  },

see also #39 I wonder if there is a way to fire the event programmatically after all request of a route are resolved. The idea above does not work. Doing it manually with each query is uncomfortable.

Spica2 avatar Sep 08 '19 23:09 Spica2