I have a collection that can be divided into several pages per backend, so onscroll I have another batch of items. I know the number of items on the server. I am looking for a way to expand all my collections with the getCounter method. The idea is to set the server counter first, and when the user adds or removes items from the collection, updates the counter. What would be the best approach for this?
I think the problem is that the add event is also triggered when I retrieve new items from the server. Otherwise, I could just snap to the add and remove events.
source share