Meteor.publish("items", (limit) => {
return items.find({}, {limit: limit || 15});
})
renderMoreItems(){
const newRenderedItems = items.find(this.state.options, {
skip: this.state.rendered,
sort: {dateCreated: -1}
}).fetch();
}
I am pretty sure my problem is trying to retrieve data when the server has only sent the 15. So I am trying to find a way to request for the server to send another 15 items in the collection and skip the past 15.
How do I request more data from the server without calling Meteor.subscribe
again. Ive read somewhere that it is really slow and is not recommended. Previously I had the server sending over all the data and then it filtered it on the client side, and it was very slow.