Static GitHub Issues

[2039] How to add logic on root vue instance mounted or created method so I can handle page refresh?

prev: [ask] 1.0 about the release of what time?
next: Separate documentation for SPA mode

How to add logic on root vue instance so I can handle page refresh?

How do I do this in nuxt SPA mode?

new Vue({
  el: '#app',
  mounted() {
     // Get User Object from API
  },
  created() {
     // do something
  }
 
})
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1808">#c1808</a>)</em></sub></div>