-
Notifications
You must be signed in to change notification settings - Fork 94
"Uncaught TypeError: Illegal invocation" when using useAsync #20
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
Comments
Thanks for reporting! Do you have a small example how to reproduce this? |
Just encountered the same problem. bug lies in this line. AbortControllers abort method gets called with null context. If you change this line to this |
Thanks! I'll push a fix soon. There's also a major update (v4) coming up, but I'll patch this bug separately. |
Published in v3.13.3. |
When I'm using
useAsync
hook instead of the<Async>
component, when the parent component (page) gets unmounted, it throws this error:I'm using React 16.8.0 with official hooks API, however this was the case even with the previous alpha.
The text was updated successfully, but these errors were encountered: