maxmarinich / react-alice-carousel

React responsive component for building content galleries, content rotators and any React carousels
MIT License
832 stars 91 forks source link

Carousel Memory Leak #287

Closed ElsonNezaj closed 1 year ago

ElsonNezaj commented 1 year ago

"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 a component that uses the carousel unmounts. The react state is cleared everytime the components are unmounted , but still the error occurs

maxmarinich commented 1 year ago

Hi, @ElsonNezaj! The library already has all preparations to unsubscribe and it uses them as expected. The problem is probably within your component. If not reopen the issue and provide a code sample.