Open wendt88 opened 4 years ago
Seeing this also in an app we built, let me know if there's anything I can do to help test any proposed fixes
This may have something to do with iOS13.x
Hey @wendt88 I think I found a race condition in my code that was causing this issue - one view was in the middle of being rendered/updated when a this.$navigateTo
command was run in parallel. If you're still having this problem, drop me a line and I might be able to help out.
Hi @ok200paul, I downgraded nativescript-vue
and after a while I upgraded again and it seems to work. but now it occurs again with version 2.8.3
and iOS 14.2
. can you please help me out? maybe is there something wrong in my code. THX
Hey @wendt88, try the following:
Check If the problematic page is being programatically navigated to - say an event occurs and it triggers this view with no user input/tap. Our problem was this - an event from a data value changing was triggering a navigation, but then the user was tapping also, causing the crash.
If it's definitely not number 1 above, check for events being triggered from the tap itself. It might be that the different events are trying to load two different view, or event navigating to the same view twice.
I can only really speak to my experience in this case, the problem for us appeared to be the same view being pushed twice, even though the user was only tapping once.
Thank you @ok200paul, I made some checks & workarounds to made it work. But I have to update my app to NS 7 and so I must upgrade nativescript-vue
too. And there are some new problems I'm not able to resolve. So I created a new issue #763
I'm currently facing the same problem and can't figure out why, with nativescript-vue v2.7.0+ and nativescript 7.0 on iOS. I've got a Frame nested within a Layout component, which adds some extra stuff, like a custom navigation bar. The frame has got an id of default and is later passed on to a router via refs. When I try to let make it navigate to the first route - no matter how many delays, $nextTicks and conditions I put in front of it, it will always throw the same error, exactly the same one that this thread talks about. I've also commented out all redirects etc. to make sure there's no additional route changes, and there isn't. The Frame crashes as soon as I try to navigate to the first page.
@wik-z can you share a repo that exhibits the issue? Would help tremendously with debugging it!
Version
2.7.0
Reproduction link
https://play.nativescript.org/?template=play-vue&id=2zRQQY
Platform and OS info
iOS
Steps to reproduce
Clone the working example, upgrade
nativescript-vue
to >=2.7.0
and run itWhat is expected?
the nested
Frame
inside sidedrawer should navigate toContent
-componentWhat is actually happening?
Error: <UINavigationControllerImpl: 0x7fdd44039200> is pushing the same view controller instance (<UIViewControllerImpl: 0x7fdd43c2f720>) more than once which is not supported and is most likely an error in the application
It works before
"nativescript-vue": "2.7.0"
(<=2.6.4
)Full stack: