Subscribe on changes!

Memory leak when using computed is SSR mode

avatar
Jan 5th 2022

Version

3.2.26

Reproduction link

github.com

Steps to reproduce

Described is repository readme

What is expected?

Do not see memory leaks

What is actually happening?

Memory leaks


I report this issue here because this is reproducible in both vite and nuxt environments If this is not an appropriate repo please tell me where I should report to

avatar
Jan 5th 2022

Edit: I misinterpreted the screenshot as I didn't see that doctor profiler setup thing initially. That might make my point here moot:

Can you clarify what you see as a memory leak here? I only see increased memory usage which is not a leak and could be perfectly explained by the fact that in one case you create hundreds (thousands?) of computed properties while in the other you simply don't.

A leak would be if you destroyed all of these Posts again and memory usage would not decrease to the same level.

avatar
Jan 5th 2022

Updated reproduction description

avatar
Jan 16th 2022

@yyx990803 amazing, thanks for quick fix!