Skip to content

onMounted is called on the main component before the application ns is mounted #1081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vallemar opened this issue Jun 11, 2024 · 0 comments

Comments

@vallemar
Copy link
Contributor

It seems that onMounted is being called in the main view before the application is available.

If I do it, it fails because onMounted is called before rootApp is defined in ns-vue, tracing the code it seems that the rootApp has not yet been defined here https://github.com/nativescript-vue/nativescript-vue/blob/main/src/index.ts#L92

Reproduce link https://stackblitz.com/edit/nativescript-vue-nativescript-vue-4rarjw?file=src%2Fcomponents%2FHome.vue&title=NativeScript%20Starter%20Vue3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant