Skip to content

Async operations on HMR fails to update the view #70

@svvac

Description

@svvac

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions