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
Angular 2: Components in history getting created newly every time while going back #7965
Comments
What about creating a plunker as mentioned in the linked issue? Does the component implement CanReuse |
Sure. Here is the link http://plnkr.co/edit/P7BsEws3sKGbhhNH0OVA?p=preview |
See also
|
CanReuse is not going to help you here IMO. You can't prevent the reloading of the component unless Angular 2 (or another router) introduces some sticky-state / component cache mechanism. In the meantime, you could use the service to cache data to prevent it being re-requested although then people's expectation that going to the page will show the latest values may be tested - you need some mechanism to push or poll to changes. |
I am also facing same issue. |
when this issue has been resolved any ET? |
I think, this issue have the same theme as described here #7757 |
#13124 already merged |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
In Angular 2 Tour of Heroes example,
It seems to be very expensive, every time we land the page, It has to make numerous http calls.
The text was updated successfully, but these errors were encountered: