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>