useWorker
useWorker copied to clipboard
unknown promise rejection error
Hi, i am using useWorker to render list of array of object in useEffect
it is giving me this error and i am not able to retrieve my list , i want data to be rendered soln not try catch thanks
Unknown promise rejection reason at handleError
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
Same problem here and I found it was because react strict mode: https://react.dev/reference/react/StrictMode
It would execute the effect twice which is not allowed for web worker. So you could try to remove the React.StrictMode wrapper from your root component.