Skip to content
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

The blog content disappear when I refresh the page.(demand-express example)  #67

Open
ElderJames opened this issue Aug 5, 2017 · 7 comments

Comments

@ElderJames
Copy link

ElderJames commented Aug 5, 2017

I run the demand-express example by excuting the command npm start and access http://localhost:8080/blog/1,then the blog content appear but it disappear when I refresh the page.But when I access the url in new tab,it appear again.

@wnabil
Copy link

wnabil commented Aug 15, 2017

same here :\

@abdalrhman-alhomsi
Copy link

+1, the same here too....

@wnabil
Copy link

wnabil commented Aug 17, 2017

After looking at the main cause of this problem I notice that it is related to the Angular/preboot.
as a temp fix for this I commented out this line :
setImmediate(() => prebootClient().complete());
inside the root.module.ts file
and the problem was gone.

@clbond
Copy link
Contributor

clbond commented Sep 18, 2017

Unfortunately I cannot reproduce this. Can you tell me what the initial HTTP request gives back in its body? Anyone - @ElderJames @wnabil @abdalrhman-alhomsi

@wnabil
Copy link

wnabil commented Sep 19, 2017

I tested the example app and also has the same behavior, I think there is something wrong with preboot.

@clbond
Copy link
Contributor

clbond commented Oct 21, 2017

I have removed the setImmediate call in the example as it was unnecessary. Does this fix your issue? Maybe you are using an old Chrome that doesn't have setImmediate?

@wnabil
Copy link

wnabil commented Oct 22, 2017

My chrome is at latest version and this issue happened also on firefox for me not only chrome.
Yes removing setImmediate works but also need to remove builder.preboot(true); in server/index.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants