How to do infinite scrolling with added elements on top?

Let's say I have node.js API server that returns an array of news of 10 pieces. The user is downloading 10. Further 10 more, putting the offset parameter. Now suddenly added more news. And if the user will load after this news with the offset parameter, then it will already be loaded before this news in the first item. As it is usually done in such cases? In principle, it is in the VC.
July 9th 19 at 10:35
1 answer
July 9th 19 at 10:37
In such cases, add a label. It's not just downloadable 10 news, 10 news, since such id.

Find more questions by tags APINode.jsPHP