[Fix] $slots children references cause memory leak, replace by creating the 'keeps' vnodes when it needs #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently I found that my page crashed when data set increases(about 2000 items, and 1k per item),
visual(size and remain together) was just 50, but the memory use was nearly 1G.
And the finite live demo performs similarly. Maybe it's a memory leak, or a memory waste, simple 100,000 items retain 64M default , and 150M maximum after scrolling up and down.


50 'keeps' size and all vnodes default, more vnodes and vueComponent are created but not deleted after.
I think it should be a memory waste, virtual item vnodes and components have references with VirtualList in this way. When data set increases, it maybe a memory problem.
Solution is quite simple, pass pure data and the itemComponent to the container, and create vnodes what we need VirtualList, which can cut down references across objects.
See more detail at changed and the example 'finite-m' ,


for comparison, the new way saves memory indeed ~