-
-
Notifications
You must be signed in to change notification settings - Fork 245
Frame ids being renamed from navigating in tabview with clearHistory #532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@vbro1293 the problem is that the ID in the I think the |
I've actually commented out the internal counter in my local version of the latest alpha. I'm trying it in a real app, and checking if I run into issues with that. So far it has been fine without it. The original reason for this was that sometimes the frame would get created before the old one would be destroyed (or some similar situation, I actually don't know for sure). @msaelices the frames are resolved based on their id, so unless you pass the frame instance to Anyways, I think for the next version I will remove the internal counter, and just override the frame based on the ID. The only issue with this would be if the user uses the same id for multiple frames. We can't warn about this, because you don't know for sure if the frame id is in use, or just not destroyed yet. |
@rigor789 commenting out the Why is exactly needed to have the |
@msaelices I think there was a case where the same frame would get re-created before the old instance was destroyed. And the id would clash. I don't think this is a problem though now that I think of it, because you likely always want to access the "latest" frame with a given ID. With that, i think it's safe to remove the idCounter, and just override the older frame instance in the frame util. The only problem this would cause, is if the user uses the same id simultaneously on two frames. And no, the NavigationEntry itself wouldn't cause a clash - it just stores the passed id, and finds the frame based on it! |
@rigor789 Just read your previous comment :) |
I will work on it. |
I have a version without the idCounter locally, with some Modal fixes for devtools. I'll have to clean up my changes and push them soon. I'll probably release it as 2.5.0-alpha.1 too. |
@rigor789 @msaelices - Thank you both for looking into this and providing a fix! |
I will release the fix as an alpha release soon! |
We are locking this issue because it has been closed for more than 14 days. If the issue comes up again please open a new issue with additional details. |
Version
2.2.2
Reproduction link
https://play.nativescript.org/?template=play-vue&id=b9T9VZ&v=4
Platform and OS info
iOS 12.4 / Android 7
Steps to reproduce
What is expected?
What is actually happening?
${framename}1
when the nested navigation page requires frame:${framename}
This is the base structure of an app which would require quite a large navigation restructure, so any workaround or fix would be appreciated without disrupting this specific component structure i.e. frame within a tabview within another frame.
Thanks!
The text was updated successfully, but these errors were encountered: