I have set up paging in my application, but one thing I noticed was the page is “rendering” the collection when the state is loaded.
I am thinking I need to do something with resolve
but I am not sure how to do it yet. The collection I retrieving is done through a subscription
vm.subscribe('user-list-admin', () => {
return [this.getReactively('findSelector', true), {
skip: this.getReactively('skip'),
limit: this.getReactively('itemsByPage'),
sort: this.getReactively('sort')
}]
})
vm.helpers({
users: () => Meteor.users.findFromPublication('user-list-admin', {}, {
limit: this.getReactively('itemsByPage'),
sort: this.getReactively('sort')
}),
usersCount: () => Counts.get('user-list-admin-count'),
})