-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
clearHistory is removing the Frame component when the Frame is in a component template #472
Comments
Looking at the code, this seems like a bug, however it can easily be worked around, either by defining the frame in main.js in the render function, or extracting the first page into a component, and rendering it that way: https://play.nativescript.org/?template=play-vue&id=eA0tz9&v=3 I have plans to improve Frames in general, and will investigate this further. |
Yes i found this workaround too, but i still wanted to report this bug. |
No, VueRouter is not supported currently, and will not be for a while. You can use |
@rigor789 how about transitions and something like |
@TemaSM You can set the transition between pages, however I don't think any of the default/existing ones do what you're looking for. You can build a custom transition (I've never done it myself) based on this doc https://docs.nativescript.org/ui/ns-ui-widgets/frame#navigation-transitions (scroll to the "Custom Transitions" section). |
@rigor789 thanks for tips and link. Already tried by this article, which mostly helped me, but app's screens/pages still slides as whole Frame (with background image) not as containers in Frame itself. |
@TemaSM you can do something like this: https://play.nativescript.org/?template=play-vue&id=Ltgbh6 Set the page background to transparent, and navigate the frame. The background color comes from a wrapping element. |
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.0
Reproduction link
https://play.nativescript.org/?template=play-vue&id=eA0tz9
Platform and OS info
Nativescript-Vue 2.2.0 / Android 7.0
Steps to reproduce
My default Frame is in my App.vue component :
I'm creating my Vue root instance without inserting Frame like that :
And when i use a $navigateTo with clearHistory set as true, the default Frame from App.vue will be removed and i will not be able to navigate anymore.
I've created a reproduction link with Nativescript Playground so you can see what's is happening
What is expected?
The default frame has not to be deleted
What is actually happening?
The default frame is removed
The text was updated successfully, but these errors were encountered: