[Vuejs]-How does vue v-if handle memory?

0👍

Use Vuex. Then your data will persist in memory between pages / components. But use it only for data you really need to keep. Local data, so the data function in components will be deleted with your component automatically, with garbage collector. But only when you will not use the <keep-alive> built-in component.

Leave a comment