Dynamic routing with flow-router and react-mounter

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

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

1 Like