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]在 ssr 中使用 useRequest 会导致内存泄漏 #233

Open
CjLaunch opened this issue Apr 19, 2024 · 3 comments
Open

[Bug Report]在 ssr 中使用 useRequest 会导致内存泄漏 #233

CjLaunch opened this issue Apr 19, 2024 · 3 comments

Comments

@CjLaunch
Copy link

CjLaunch commented Apr 19, 2024

Bug 描述 Bug description

image 如图在内存快照发现大量 createQuery创建的实例未被GC回收,注销插件代码后,内存恢复正常。 image
@CjLaunch CjLaunch changed the title [Bug Report]在 ssr pinia 中使用 useRequest 会发生内存泄漏 [Bug Report]在 ssr 中使用 useRequest 会导致内存泄漏 Apr 20, 2024
@John60676
Copy link
Member

可以提供一个重现示例吗

@CjLaunch
Copy link
Author

目前排查下来发现是 usePollingPlugin 的插件导致的内存泄漏
image
image

@John60676
Copy link
Member

如果可以的话,能否提交个PR?

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

2 participants