Skip to content

Commit 6a710aa

Browse files
committed
fix: double navigation is certain conditions
1 parent 1bb56ae commit 6a710aa

File tree

1 file changed

+2
-1
lines changed
  • platform/nativescript/runtime/components

1 file changed

+2
-1
lines changed

Diff for: platform/nativescript/runtime/components/page.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export default {
2020

2121
// we only need call this for the "defaultPage" of the frame
2222
// which is equivalent to testing if any page is "current" in the frame
23-
if (frame && !frame.$el.nativeView.currentPage) {
23+
if (frame && !frame.firstPageMounted && !frame.$el.nativeView.currentPage) {
24+
frame.firstPageMounted = true
2425
frame.notifyFirstPageMounted(this)
2526
}
2627

0 commit comments

Comments
 (0)