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

Data Models / Props not reinitialising #17

Closed
SeoFood opened this issue Jun 15, 2015 · 3 comments
Closed

Data Models / Props not reinitialising #17

SeoFood opened this issue Jun 15, 2015 · 3 comments

Comments

@SeoFood
Copy link

SeoFood commented Jun 15, 2015

Hello

When I try to use the same component with different params the data is not updating. Even the attached method should be called right?

Here is an example code: http://codepen.io/SeoFood/pen/BNdLzX

Everytime I switch from Message Foo to Bar the attached Method should be called.

@yyx990803
Copy link
Member

By default, if the component being rendered is the same one, the router will not re-render it. But you can force a re-render by adding alwaysRefresh: true to a route config.

@bruceyongli
Copy link

@yyx990803 alwaysRefresh is not working anymore, what's the new way of force a re-render?

@chrisvfritz
Copy link
Collaborator

@ElementLi Does forceRefresh do what you're looking for?

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

4 participants