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

Async operations on HMR fails to update the view #70

Open
svvac opened this issue Oct 27, 2017 · 2 comments
Open

Async operations on HMR fails to update the view #70

svvac opened this issue Oct 27, 2017 · 2 comments

Comments

@svvac
Copy link

svvac commented Oct 27, 2017

When doing async operations (Observable, setTimeout, ...) in a component init, the code executes as expected but the view doesn't get updated.

Reloading the component by changing route works as expected though.

Removing the this.appRef.tick() call in AppModule#hmrOnInit() seems to fix that, and so does making said call in a setTimeout().

@rbudnar
Copy link

rbudnar commented Nov 8, 2017

Thanks for that! I had this issue with my observables as well and that seems to have resolved it.

@PatrickJS
Copy link
Owner

yeah, that makes sense. can you edit the readme to mention this?

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

3 participants