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

使用puppeteer,当启动热更新时,如果窗口已经打开了一个浏览器页面;热更新会新开一个electron客户端;每次都不会关掉; #581

Open
4 tasks done
wsxc452 opened this issue Aug 1, 2024 · 1 comment

Comments

@wsxc452
Copy link

wsxc452 commented Aug 1, 2024

Describe the bug

最近在使用puppeteer,遇到一个棘手的问题;就是我如果用puppeteer打开了newPage;
当启动热更新时,热更新会新开一个electron客户端;每次都不会关掉; 这样会越来越多;
我用了vite-electron-builder这个开源框架,发现没有这个问题;每次都会重启客户端;并只保持一个客户端;
image

Electron-Vite Version

2.3.0

Electron Version

^31.3.1

Vite Version

^5.3.1

Validations

@liuyike98
Copy link

我也遇到偶尔热更新时有一个悬空的进程,还以为有内存泄漏

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