Concept Flow - Keep-alive for expensive components
Component mounts first time
Component renders and runs setup
Component cached by <keep-alive>
User navigates away
Component is hidden but state kept
User navigates back
Component restored from cache, no re-setup
Component continues with preserved state
This flow shows how Vue's <keep-alive> caches a component after first render, preserving its state when hidden and restoring it without re-running setup.