Describe the bug
An error occurs when unmounting the component that contains the Carousel: react_devtools_backend.js:3973 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 the componentWillUnmount method. I saw that this was already fixed in 2.5.0, but is back for 2.8.0.
To Reproduce
Steps to reproduce the behavior:
Go to the page with carousel
Change the slide
Go back to the page without carousel
Expected behavior
Component unmounts without error
Describe the bug An error occurs when unmounting the component that contains the Carousel:
react_devtools_backend.js:3973 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 the componentWillUnmount method.
I saw that this was already fixed in 2.5.0, but is back for 2.8.0.To Reproduce Steps to reproduce the behavior:
Expected behavior Component unmounts without error
Screenshots![image](https://user-images.githubusercontent.com/2624540/160079802-f77ecfaf-70dc-498c-b133-1c12d9294900.png)
Additional context Carousel component:
"react": "17.0.2", "react-multi-carousel": "^2.8.0",