4 ms·
I really like this. It reminds me of Mr. Money Mustache's "50 Jobs over $50,000 - Without a Degree": [Part 1] http://www.mrmoneymustache.com/2013/07/25/50-jobs
by grardb 11y ago
I really like this. It reminds me of Mr. Money Mustache's "50 Jobs over $50,000 - Without a Degree":
[Part 1] http://www.mrmoneymustache.com/2013/07/25/50-jobs-over-50000-without-a-degree-part-1/ http://www.mrmoneymustache.com/2013/07/25/50-jobs-over-50000...
[Part 2] http://www.mrmoneymustache.com/2013/08/05/50-jobs-over-50000-without-a-degree-part-2/ http://www.mrmoneymustache.com/2013/08/05/50-jobs-over-50000...
Quick question: How did you get pagination working? I haven't built anything big in Meteor, but I did go through the Discover Meteor book, and it said that Meteor doesn't lend itself well to pagination, so that you should use infinite scrolling. Does pagination break if the database is updated, or is it not reactive, or am I missing something?
- sdybskiy 11y agoI am using Flow Router https://github.com/kadirahq/flow-router https://github.com/kadirahq/flow-router to route the app. And this is the package I'm using for pagination https://atmospherejs.com/miguelalarcos/flow-router-pagination https://atmospherejs.com/miguelalarcos/flow-router-paginatio.... So far it hasn't let me down (there are a few bugs with the subscriptions on each individual page) but if you play around with the work style filter you'll see the collection reactivity and how it's reflected on the subscription and pagination. Thanks for your feedback! Waiting for Meteor to support pagination natively.
- grardb 11y agoThanks for the tip! I actually wanted to build something in Meteor a while ago, but couldn't figure out how to set up pagination (and infinite scrolling just seemed awkward in that specific case). It's nice to see that there are ways to get it working.
- sdybskiy 11y agoYeah the speed that Meteor is accelerating at as a framework is amazing to see, soon enough it will be playing with the big dogs no problem :)
- sergiotapia 11y agoMy website also uses FlowRouter and flow-router-pagination. If you want to check out the source and see how it works, see here: https://github.com/sergiotapia/trovemarketplace https://github.com/sergiotapia/trovemarketplace