We have a simple list of items (search results), and a "load 10 more" button under the list. With user click, we load the i.e. second page of items and add those at the end of the first list and so on.
The problem is, the data set can be changed in every second. So in the meantime when the user wants to load more items, an item which was already inside the first page, can be loaded again from backend with some updated info within the second page. Since we do not want to show the same item multiple times, at the moment we write our own logic where we iterate the list and manually compare the id's, everytime a new list part is loaded.. and if the same id appears again, we either ignore it or update the value of the original item.
Is there any Angular out-of-the-box solution for this problem?
I have actually thought sth. like "track by", which intelligently realizes which items are already rendered on UI, and just renders the changed part of a list in DOM.
Thanks in advance.