iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

Page has reload when session value changed. #1495

Closed shar0 closed 8 years ago

shar0 commented 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
});
shar0 commented 8 years ago

Emmmmm, i'm replace SubsManager with Meteor, it's fixed. Maybe i should move this issue to SubsManager.