Thanks for the help. Indeed, calling Toast.create in mounted() breaks somehow the component and cannot be used elsewhere afterward.
The above solution works (corrected, use “process.nextTick”)
mounted() {
process.nextTick(() => {
Toast.create('Hello World')
}
}
Isn’t there a more elegant solution ?
When the component is called, I want to perform some checks and display a Toast if needed. I thought mounted() was the good call.
I know, this question is more about VueJS than quasar finally.