kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 193 forks source link

FlowRouter.go not going #699

Closed frankapimenta closed 7 years ago

frankapimenta commented 7 years ago

I have a qrcode reader that on scan executes either of two code lines.

qrCodeScanner.on("scan", function(err, mes) {
  if(mes) {
    FlowRouter.go("there");
  } else {
    FlowRouter.go("overthere");
  }
});

none of the FlowRouter.go are working.

Any ideas about what might be wrong? I think that .go only considers first call right?

jhuenges commented 7 years ago

Have you tried it with an actual route like:

FlowRouter.go('/home');

?

frankapimenta commented 7 years ago

Yes. Of course.

FlowRouter.go("showArticle", {_id: ""});

jhuenges commented 7 years ago

No, not the name, the path: FlowRouter.go('/showarticle/2');

frankapimenta commented 7 years ago

Coming back to the problem after a long break made me realise that it was my mistake. It works fine. I'm sorry about it. Thank you for your time!