vendredi 10 août 2018

Ember Component does not reload on route reload or transitionTo

I have an ember route that calls an ember component to display all the data.

I have a case in which the route's key changes and I reload using route.transitionTo. The data is loaded fine. But the problem is the component does stuff in the init and didInsertElement methods, which on the route.transitionTo aren't triggered.

How can I make sure on transitionTo the component is called again?

I can't use route.refresh because that doesn't do the model hook.

Any help will be appreciated, Thank you!




Aucun commentaire:

Enregistrer un commentaire