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

unknown promise rejection error #135

Open
shubham7822 opened this issue Jun 25, 2023 · 2 comments
Open

unknown promise rejection error #135

shubham7822 opened this issue Jun 25, 2023 · 2 comments
Assignees
Labels
question Further information is requested to inspect 🤔

Comments

@shubham7822
Copy link

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 shubham7822 added the question Further information is requested label Jun 25, 2023
@ghost
Copy link

ghost commented Jun 25, 2023 via email

@Arichy
Copy link

Arichy commented Feb 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested to inspect 🤔
Projects
Status: Todo
Development

No branches or pull requests

4 participants