Skip to content

Commit 850b12b

Browse files
committed
fix(bootstrap): re-mount when activity is re-created
1 parent 7a2cb9f commit 850b12b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platform/nativescript/runtime/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@ Vue.prototype.$mount = function(el, hydrating) {
5757
}
5858

5959
Vue.prototype.$start = function() {
60-
const self = this
60+
let self = this
61+
const AppConstructor = Vue.extend(this.$options)
6162

6263
start({
6364
create() {
6465
if (self.$el) {
65-
self.$el.nativeView.parent = null
66-
return self.$el.nativeView
66+
self.$destroy()
67+
self = new AppConstructor()
6768
}
6869

6970
self.$mount()

0 commit comments

Comments
 (0)