Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yeyan1996 opened this issue Aug 3, 2022 · 0 comments
Open

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

yeyan1996 opened this issue Aug 3, 2022 · 0 comments

Comments

@yeyan1996
Copy link

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 越加越多

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant