Best pattern for pagination / filtering


I’m trying to work on something right now for a user list. I have a reactive var that holds an array of users that gets outputted to the template. I have another reactive var for page which triggers an autorun to subscribe to the next set of users (publish using limit + skip) and when the subscription is complete I push the next set of users on to the array. It seemed to me that this would be the most efficient way as far as performance and predictability goes but it’s not quite working correctly yet…

I was wondering if there is a best practice method to updating a view with new results while only subscribing to a small set of data to keep up performance.

Also want to ask if there is certain instances / places where subscribes would not clear out data stored on the client (minimongo). I have certain routes that corrupt data on others because the same items aren’t cleared ou.

Thanks in advance