I’ve got a route whose template contains two components. I use the route to show the details from a selection elsewhere in the application. When I transition to the route to show the details of the latest selected data item, I see that the components are getting destroyed and re-created each time. The route’s init() method is only called the first time, as I would expect. But each time, I re-transition to the route to show different data, the components are getting destroyed and recreated. Is this normal? It seems inefficient to me. I was think I would just update their data models based on the route’s new data. What am I missing?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Prevent destroying component on route change | 0 | 1413 | February 21, 2016 | |
Prevent re-rendering of template when transitioning to a route | 5 | 4690 | December 5, 2013 | |
Routable Components Questions | 4 | 6400 | November 18, 2015 | |
Bug or Feature? (run loop, render engine)
|
1 | 1012 | December 4, 2015 | |
View instances created then destroyed on route transition
|
2 | 1141 | May 24, 2014 |