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

FlowRouter.go throws an error #176

Closed
pahans opened this issue Jun 24, 2015 · 2 comments
Closed

FlowRouter.go throws an error #176

pahans opened this issue Jun 24, 2015 · 2 comments

Comments

@pahans
Copy link
Contributor

pahans commented Jun 24, 2015

I have a FlowRouter.go inside a Tracker.autorun.

Tracker.autorun(function() {
  if(!Meteor.userId()) {
    FlowRouter.go("/sign-in");
  } 
});

throws following error.
image

@arunoda
Copy link
Contributor

arunoda commented Jun 24, 2015

Check the new version. There is a fix for this.

@ndarilek
Copy link

Seeing this error again in 2.7.0.

I'm using a combination of React and Blaze--ReactLayout to render almost everything, and a React wrapper around the Blaze useraccounts atForm template. Any FlowRouter.go call triggers this error:

FlowRouter.go("second")
Error: Can't call Tracker.flush while flushing

This occurs regardless of whether my pages are React or Blaze-wrapped React components.

Maybe there's an issue detecting whether or not flush() should be called in apps where both React and Blaze are used? I don't see this in apps that are primarily Blaze, or in apps that are exclusively React.

If you can't duplicate this, I can post a link to the repository. This happens in a template app that I use as a starter, so there isn't a whole lot of complexity.

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

3 participants