Content-Length: 250326 | pFad | http://github.com/nativescript-vue/nativescript-vue/issues/1081

21 onMounted is called on the main component before the application ns is mounted · Issue #1081 · nativescript-vue/nativescript-vue · GitHub
Skip to content

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

Open
@vallemar

Description

@vallemar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/nativescript-vue/nativescript-vue/issues/1081

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy