-
Notifications
You must be signed in to change notification settings - Fork 101
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
using kill()
does not fully reset state
#119
Comments
Still the same problem, any update on this issue? |
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
Is this issue fixed? |
released Apologies for the long wait, but due to personal and work-related reasons, I wasn’t able to maintain the library. Together with the new maintainer, @naorpeled, we are working to stabilize useWorker and add new features in the coming months. :) |
https://github.com/alewin/useWorker/blob/master/packages/useWorker/src/useWorker.ts#L64
If the
kill
method is called from user code,isRunning
is never reset and https://github.com/alewin/useWorker/blob/master/packages/useWorker/src/useWorker.ts#L149 error is tripped the next time the worker is used.setWorkerStatus(WORKER_STATUS.ERROR)
orisRunning.current = false
in that spot fixes the problemThe text was updated successfully, but these errors were encountered: