Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is a bug?? #145

Closed
bySabi opened this issue Jun 5, 2015 · 1 comment
Closed

is a bug?? #145

bySabi opened this issue Jun 5, 2015 · 1 comment

Comments

@bySabi
Copy link

bySabi commented Jun 5, 2015

I have this routes

FlowRouter.route('/test', {
    action: function() {
        FlowLayout.render('mainLayout', {area: 'test'});
    }    
});

FlowRouter.route('/', {
    action: function() {
        FlowRouter.go('/test');
    }
});

Locally is we go to URL: localhost:3000/
"test" template is not rendered and got a Exception:

Exception from Tracker recompute function:
debug.js:41Error: You can't use reactive data sources like Session inside the `.subscriptions` method!
    at utils.js:133
    at Tracker.Computation._compute (tracker.js:294)
    at Tracker.Computation._recompute (tracker.js:313)
    at Object.Tracker._runFlush (tracker.js:452)
    at onGlobalMessage (setimmediate.js:102)

I put on Meteorpad http://meteorpad.com/pad/puMYoFS3hFSddSop2/flowrouter-test and there it work
fine. Tested with meteorpad URL http://app-******.meteorpad.com/

@arunoda
Copy link
Contributor

arunoda commented Jun 6, 2015

It's a bug right now. If you need to do this, use a trigger or do this
inside a setTimeout, until we do a fix.
On 2015 ජූනි 6, සෙන at පෙ.ව. 2.39 bySabi notifications@github.com wrote:

I have this routes

FlowRouter.route('/test', {
action: function() {
FlowLayout.render('mainLayout', {area: 'test'});
}
});

FlowRouter.route('/', {
action: function() {
FlowRouter.go('/test');
}
});

Locally is we go to URL: localhost:3000/

"test" template is not rendered and got a Exception:

Exception from Tracker recompute function:
debug.js:41Error: You can't use reactive data sources like Session inside the .subscriptions method!
at utils.js:133
at Tracker.Computation._compute (tracker.js:294)
at Tracker.Computation._recompute (tracker.js:313)
at Object.Tracker._runFlush (tracker.js:452)
at onGlobalMessage (setimmediate.js:102)

I put on Meteorpad
http://meteorpad.com/pad/puMYoFS3hFSddSop2/flowrouter-test and there it
work
fine. Test with this http://app-wfgn2elu.meteorpad.com


Reply to this email directly or view it on GitHub
#145.

@arunoda arunoda closed this as completed in 6f56501 Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants