Best Practice for Loading a Meteor

I would like to have a list of 10 items, there should be a bigger download button at the bottom of the list. Clicking on it adds ten more items to the list.

I already came up with a session that monitors the limit property. But the problem is that meteor then reloads the full list instead of just adding 10 more.

I would be very grateful for an elegant solution.

+3


source to share


3 answers


This smart package provides an easy way to paginate:



https://github.com/tmeasday/meteor-paginated-subscription

+1


source


For future reference, the most complete paging solution in Meteor looks like meteorites :

https://github.com/alethes/meteor-pages



It provides user interface components and hardware router integration. If you're looking for infinite scrolling without page navigation, a simpler meteor paginated-subscribe might work well enough for you:

https://github.com/tmeasday/meteor-paginated-subscription

+1


source


Have you looked at saving? This should do it.

http://docs.meteor.com/#template_preserve

0


source







All Articles