Skip to content

Memory leak in Vue.js server-side when using "computed" #5975

Closed
@freeozyl80

Description

@freeozyl80

Version

[email protected]

Reproduction link

https://github.com/freeozyl80/vue-memory-leak

Steps to reproduce

  1. use Vue Server Render (renderToString);
  2. the vm in server has "computed" which define a test function without return.(yes ,this step is incorrect, just throw error and pause is ok, but then memory leak happend)
  3. memory leak happend.

What is expected?

throw error and pause

What is actually happening?

the vonde is going to run and create, but not destroyed and exit.
In heap snapshots, i found the vue$2 has created almost 4538


just look in 'https://github.com/freeozyl80/vue-memory-leak'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions