vue-request icon indicating copy to clipboard operation
vue-request copied to clipboard

[Bug Report] 服务端渲染时,存在内存泄漏

Open yeyan1996 opened this issue 2 years ago • 0 comments

Bug 描述 Bug description

1.2.4 版本,使用 useLoadMore 在服务端运行时,会有内存泄漏

代码重现 Reproduce

https://github1s.com/AttoJS/vue-request/blob/HEAD/src/core/utils/listener.ts#L9 https://github1s.com/AttoJS/vue-request/blob/HEAD/src/core/useAsyncQuery.ts#L242

期望结果 Desired result

其他信息 Other information

image

image

原因是服务端没有 onUnmount 事件,导致 Set 越加越多

yeyan1996 avatar Aug 03 '22 10:08 yeyan1996