Answer the question
In order to leave comments, you need to log in
How can vue 3 hooks be used in main.ts?
Hello, in my examples for vue 2 (for pre-rendering) I often use an event
like
new Vue({
el: '#app',
router,
render: h => h(App),
mounted () {
document.dispatchEvent(new Event('render-event'))
}
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question