-
Notifications
You must be signed in to change notification settings - Fork 58
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
Fix useEffect warning/memory leak #63
Conversation
Fixes the warning: `Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.`
This warning would happen if you ever unrendered |
It looks like we can stop using our custom storybook API type since I think they now ship them |
I was just trying to get that tracked down. 😁 I'll get that fixed up. |
@adamyonk I think I figured it out. This should also fix another error I see on the console sometimes. Thanks for the contribution! |
🚀 PR was released in v0.1.9 🚀 |
Fixes the warning:
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.