useWorker icon indicating copy to clipboard operation
useWorker copied to clipboard

unknown promise rejection error

Open shubham7822 opened this issue 2 years ago • 2 comments

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

shubham7822 avatar Jun 25 '23 17:06 shubham7822

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

ghost avatar Jun 25 '23 18:06 ghost

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.

Arichy avatar Feb 22 '24 06:02 Arichy