-
-
Notifications
You must be signed in to change notification settings - Fork 241
Force reload of previous page to update dynamic data when navigating back #607
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
please can you write how you resolve this problem? |
Lol, is this the dead end on the internet for trying to solve this problem? I found animations do not restart when using the back button, not do dynamically generated items get regenerated. As a newbie to this, I was thinking something other than ngOnInit existed?? |
@jdchmiel I have been battling to solve this issue for days now since I noticed it. No luck yet. |
I have a had a little bit of luck in creating a watcher to do some work. The CSS repeating animation on the page is not reloading though, it stays at the initial non-animated state when I use the back button. Navigating to this page does retrigger the animation to start, but I really want the back button to trigger it as well. Some simplified code to get the idea:
However, I am pretty sure this is really incorrect as some logging has shown things firing up to 3 times :( |
@jdchmiel I'm currently using angular so I ended up putting the animating object into a |
I also have a problem with this. Does anyone found a solution for this? |
Hello Guys, I found the solution #617 here. Please have a look. |
We can use the Basic example when using Nativescript with Angular is - The event
The event
Therefore you can use Hope that helps. |
still not working |
I was trying to do this using the That being said - I did put |
Since Nativescript caches current page when navigating forward, navigating back means that any changes made in the new page won't be recognized by the current page. How then do I force a reload of the cached page when navigating back?
To solve this, I try to create a pseudo page (a new layout and some animation) but that's not at all practical since ngOnInit is never called again as discussed in issue #374. It would be very inconvenient to make user do pull to refresh constantly.
The text was updated successfully, but these errors were encountered: