-
-
Notifications
You must be signed in to change notification settings - Fork 241
White screen on navigate with clear history parameter #829
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
@mayureshjadhav there might be multiple reasons for your issue so please post more detailed information on how to reproduce your case. As the latest version is 3.x.x we will need both the content of your package.json file and the code used to create your application - the best case would be to create a sample application that demonstrates the issue and what you have achieved so far. |
From @mayureshjadhav on May 31, 2017 4:21 Actually, I created project from hello word template and added two more pages and when I try to navigate from one page to another by using following code
I can see a white screen and then it moves to about (another) page. Actually, you will not see the difference in a small application but when your app becomes complicated you will observe this issue. |
@mayureshjadhav I was able to fully reproduce this issue using Angular application and ClearHistory set to true with some PageTransition (the default one as well). The issue is not reproducible with core NativeScript project. Marking this one as a bug - keep track of this issue for further updates. Reproducible with both iOS and Android but only in Angular based applications. Sample application to reproduce the issue can be found here. Steps to reproduce:
Actual result: the current page is replaced with a white screen and then the navigation proceeds. Expected result : the current page to stay during the navigation transition as in this NativeScript core application |
A guess: This is caused because when clearHistory is set the Angular component tree gets destroyed in Update: My approach is, to instead of directly destroying the cached items I queue them into an array and destroy any queued items within the navigatedFrom event asynchronously. This also improves navigation performance as destroying the component tree (including freeing memory) seems to be a bit expensive |
Can you check if ngDestroy() is called before or after the navigation happened? Might be a regression with the latest changes and if so, it would probably make sense to open a new issue. |
@vakrilov I just install the branch.
|
@buuhuu The incoming components |
@jogboms Do you have project I can test with? |
@vakrilov I'd make one up before the end of today and share it here. |
Fixed #977. |
+1 from t.1129772 Navigating from one page to another causes the client application to flicker with a white screen. |
This one is already resolved using |
@vakrilov sorry to bump that very old issue but i am seeing this in my app using 5.4.0 inside a Vue project. Could you explain (recall) what you changed in Angular to fix it? |
This issue still there in current version :( |
@alexrainman indeed still see this. But it is NOT related to angular! |
@farfromrefug it is not just iOS, i happens in Android too. |
@alexrainman ok then it might be an angular issue for you. |
From @mayureshjadhav on May 26, 2017 3:47
I am using NativeSctipt 2.5 and nativescript-angular 1.2.0 in my app.
Scenario is I am navigating from page 1 to page 2 while navigating I am clearing the history but I can see a white screen while moving from page 1 to page 2 .
What is the issue?
Copied from original issue: NativeScript/NativeScript#4269
The text was updated successfully, but these errors were encountered: