Vue · Senior · Question 19 of 75

Why does <KeepAlive> without max risk memory growth?

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).

Further reading

Problem with a question

Vue · Senior · question 19

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz