Closed shar0 closed 8 years ago
I'm implement a simple infinite scroll with React + Iron Router
Here is my code:
Template.home.onCreated(function () { Session.set('limit', 20); Deps.autorun(function () { subs.subscribe('data', Session.get('limit')) }); });
And my router file is got in project/lib/router.js (It's global both server & client)
Router.route('home', { path: '/', waitOn () { return subs.subscribe('anotherData'); }, fastRender: true });
Emmmmm, i'm replace SubsManager with Meteor, it's fixed. Maybe i should move this issue to SubsManager.
I'm implement a simple infinite scroll with React + Iron Router
Here is my code:
And my router file is got in project/lib/router.js (It's global both server & client)