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

Can't perform a React state update on an unmounted component #109

Open
nigelsim opened this issue Jun 6, 2023 · 0 comments
Open

Can't perform a React state update on an unmounted component #109

nigelsim opened this issue Jun 6, 2023 · 0 comments

Comments

@nigelsim
Copy link

nigelsim commented Jun 6, 2023

Describe the bug
We have a swiper on a component that is hidden once the swipe is completed. Since updates to 1.3.8 from 1.3.6 we get

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.
    in SwipeThumb (at SwipeButton/index.js:133)

From what I can see that line number is meaningless (minified?) and I've not been able to narrow down the exact reproducible configuration yet, but I raise it now in case anyone else is hitting this issue. I'll update with more information as I get it.

Smartphone (please complete the following information):

  • Device: Pixel 4a
  • OS: Android 13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant