Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230100

Error message after call of menuController.open() on ion-menu: "ASSERT: can not be animating"

$
0
0

Good point. There is no platform.ready() for VueJs like in Angular … see Platform | Ionic Documentation

The closest thing like platform.ready() is in Vue’s main.ts, like

router.isReady().then(() => {
app.mount(‘#app’);
});

After app.mount() the lifecyle hooks of Vue fires up, like mounted() or onMounted() (for Vues composition api, it’s the same, like mounted …). And after Vue’s lifecycle hooks the one’s of Ionic appears then, like ionViewDidEnter() … It seems, like ionViewDidEnter() is the youngest/last hook that fires, if the app is loaded and page is mounted/build/ready for nasty things …

Here’s a diagram for Vue’s lifecycle hooks: Lifecycle Hooks | Vue.js
And here are the one’s of Ionic with VueJs and the composition api usage: Vue Lifecycle | Ionic Documentation


Viewing all articles
Browse latest Browse all 230100

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>