Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions platform/nativescript/runtime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,18 @@ Vue.prototype.$start = function () {
}

const mount = function (el, hydrating) {
mountComponent(this, el, hydrating)

if (this.__is_root__) {
let view = this.$el.nativeView
const self = this
start({
create() {
return view
// Call mountComponent in the create callback when the IOS app loop has started
// https://github.com/rigor789/nativescript-vue/issues/24
mountComponent(self, el, hydrating)
return self.$el.nativeView;
}
})
} else {
mountComponent(this, el, hydrating)
}
}

Expand Down