Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vyky opened this issue Jul 29, 2016 · 1 comment
Open

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

vyky opened this issue Jul 29, 2016 · 1 comment

Comments

@vyky
Copy link

vyky commented Jul 29, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants