Search code examples
javascriptangularsignalrangular-cdk-virtual-scroll

Angular virtual scroll: prepend new items when new data streams in with Microsoft SignalR


Currently I'm using Microsoft SignalR for live updates on my data and whenever new data comes in, I would like it to be added to the existing virtual list while removing that entry from where it was.

Essentially how do you unshift with virtual scroll and splice out that data entry without having to reload the list.


Solution

  • Sorry for not being detailed enough but found the answer to my question here: cdkVirtualFor not rendering new items