Questions tagged [flow-router]

Questions for the meteor package FlowRouter

Tag questions for this meteor package: https://github.com/meteorhacks/flow-router#subscription-management

244 questions
3
votes
3 answers

Waiting on a subscription in Flow Router

Objective : I want to render one among template A or template B from my flow router function, based upon a document which is retrieved after a subscribe call. More specifically, I want to render either an admin or a student template based upon the…
3
votes
2 answers

Meteor flow router and getting params of route in a react component

How do I get the params of a route inside a react component Im using react containers from the react composer package if this is the whole route https://learnbuildrepeat-tevinthuku.c9users.io/ReadProjectMeta/wD98XTTtpf8ceyRJT How do I get…
Tevin Thuku
  • 437
  • 1
  • 8
  • 19
3
votes
1 answer

How to use FlowRouter with Meteor 1.3.1 and "Import"

I'm trying to add a few simple routes to my Meteor app, it's my first time playing with FlowRouter. I installed with: meteor add kadira:flow-router meteor add kadira:blaze-layout Then, I created a lib/routes.js file, containing this: import…
nerdburn
  • 692
  • 1
  • 6
  • 10
3
votes
2 answers

Meteor Flow Router nested dynamic templates

I am trying to render a dynamic template inside a dynamic template. Main Layout: Sub-Template:
John McNeill
  • 143
  • 1
  • 12
3
votes
0 answers

componentDidMount not being called for any of my components

I am using Meteor with React. I am using Kadira flowrouter-ssr as my router. It's so weird. None of my components get their componentDidMount() called. I found a question which seems like the same issue. I think React only uses getInitialState()…
nupac
  • 2,459
  • 7
  • 31
  • 56
3
votes
1 answer

Meteor + React : Server side routes?

I am buidling a meteor app with react. I am using these two packages for a clientside router. kadira:flow-router & kadira:react-layout But I just realized I have to respond to a post request from paypal. Since this would not be rendering anything…
Alain Goldman
  • 2,896
  • 5
  • 43
  • 75
3
votes
1 answer

Multi-page Applications with Meteor/React

I am new to Meteor/React and am trying to figure out how to create a multi-page application. I'm getting really confused about how to actually get routing to work. I want to have multiple html files that, depending on what happens on one, will cause…
G.L.3
  • 83
  • 5
3
votes
2 answers

which function is the replacement function of ‘pathFor’ function of iron-routing in flow-routing?

I use orionjs from meteor.js: I change the blog example of the orionjs (https://github.com/orionjs/examples/tree/master/blog) I use useraccounts:flow-routing replace useraccouts:iron-routing package:
user504909
  • 9,119
  • 12
  • 60
  • 109
3
votes
1 answer

meteor with flow router layout is rendered twice

I don't know why but my layout is rendered two times. Here is my index.html: title {{>layout}} Here is my layout: