I am trying to update my view after a websocket event returns updated data.
I injected a service into my app and call getData() method on the service. This method em
If you're interested, may I suggest using ngrx/store with OnPush change detection. I have run into similar issues where something happened outside of Angular (whatever that means exactly) and my view did not reflect the change.
Using the Redux pattern with event dispatchers and a single state that holds my data in conjunction with OnPush change detection has solved that issue for me. I do not know why or how it solves this problem though. Cum grano salis.
See this comment specifically for more details.