I have two paginating subscriptions, one to DB.users and one to DB.others. DB.others is adding to the local database, as expected. I.e., on page 1 we have 50 others in minimongo, on page 2 we have 100 others in minimongo, on page 3 we have 150 others in minimongo, etc. DB.users does not, and instead minimongo seems to replace the users subscription data in minimongo each time it is paginated. Is this something baked into the users collection?
(The issue is not with how things are being displayed, but with how we expect them to be stored in minimongo. Trying to figure out why/how it works differently for users.)
Here are examples of the code (skip and limit are reactive):
Tracker.autorun(() => {
Meteor.subscribe('others', {
skip: pageNumber * resultsPerPage,
limit: resultsPerPage,
});
});
others() {
const skip = pageNumber * resultsPerPage;
return DB.others.find({{skip: skip, limit: pagination.resultsPerPage}).map((doc) => {
doc.otherId = doc._id;
return doc;
});
},
Tracker.autorun( () => {
Meteor.subscribe('allUserData', {
skip: pageNumber * resultsPerPage,
limit: resultsPerPage
});
});
users() {
const skip = pageNumber * resultsPerPage;
return DB.users.find().fetch();
},