Dynamic routing with flow-router and react-mounter


#1

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, params change, url change. But view doesn’t change, no props change, no re-rendering

I need to re-render data based on props.params.id

Thanks


#2

You can wrap your component around a container so you can use FlowRouters reactive getParam function.