router
router copied to clipboard
View caching
As a developer I want to control when route components are disposed after the user navigates away from them, so that I can set the right balance between resource consumption, performance and UX:
- keeping stale views in the DOM / memory consumes browser resources
- repeat navigation to an already rendered view is faster
- transient UI state is discarded when a view is disposed and sometimes it’s nice to keep it
So important! 👏
Any update on this?
When this feature is implemented, it would be good to make a difference between caching a view instance forever and only preserving the old instance while the user navigates between routes that use the same component
, e.g. only changing the value of a parameter.
Is there any update on this?