Vue · Senior · Question 19 of 75
Why does <KeepAlive> without max risk memory growth?
- ✓Correct answer: Every visited component instance stays cached with its DOM and state
- 2It caches network responses forever
- 3It disables garbage collection
Explanation
max turns the cache into an LRU. Use include to cache only views where preserving state actually helps (e.g. a filtered list the user returns to).