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) {
    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


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

1 Like