You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using create-react-app I got stumbled upon a warning saying '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 the componentWillUnmount method.'
This happens when you have changed some code and then the slider was being moved before live reloading actually happened. As I can see currently event listeners are being cleaned on 'mouseup' event only. Despite the situation when component was unmounted before the 'mouseup' event actually happened may seem unlikely in production, it can't be ruled out completely. So I believe all the listeners should be cleaned in the 'componentWillUnmount' as well.
The text was updated successfully, but these errors were encountered:
Using create-react-app I got stumbled upon a warning saying '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 the componentWillUnmount method.'
This happens when you have changed some code and then the slider was being moved before live reloading actually happened. As I can see currently event listeners are being cleaned on 'mouseup' event only. Despite the situation when component was unmounted before the 'mouseup' event actually happened may seem unlikely in production, it can't be ruled out completely. So I believe all the listeners should be cleaned in the 'componentWillUnmount' as well.
The text was updated successfully, but these errors were encountered: