Subscribe on changes!

[Bug][Vue SFC Playground] Playground has a memory leak problem

avatar
Feb 4th 2024

Vue version

undefined

Link to minimal reproduction

no need

Steps to reproduce

When switching the on and off states of "SSR", such a page crash problem will occur if the number of switches is too many.

https://github.com/vuejs/core/assets/70258597/d483aec8-e246-44b7-aec2-392b0bc2cb62

What is expected?

Hope the page doesn’t crash

What is actually happening?

I think it's caused by memory leak

System Info

No response

Any additional comments?

No response

avatar
Feb 6th 2024

There's no memory leak after profiling memory snapshots with the SSR toggle. The crash is likely caused by something else - that said, the playground is meant for experiments, it's unrealistic to toggle so many times and you can always just refresh the page as the state is preserved in the URL.