kadirahq / react-mounter

A simple way to mount React components
MIT License
130 stars 36 forks source link

Flow-Router params change doesn't trigger re-rendering #21

Open vyky opened 8 years ago

vyky commented 8 years ago

I simply need dynamic routing with flow router and react mounter

FlowRouter.route('/sub/:id', {
  name: "MyComponent",
  action: function(params, queryParams) {
    console.log(params);
    mount(MyComponent, {params: params});
  }
});

When id change, url change. But view doesn't change, no props change, no rerendering

HenriBeck commented 8 years ago

FlowRouter isn't reactive. You should put all of your reactivity in your components