queue-anim icon indicating copy to clipboard operation
queue-anim copied to clipboard

memory leak

Open julianclatro opened this issue 4 years ago • 1 comments

Hi, I have the following error when using with react router dom, after I switching to a new page and going back to the one with queue-anim.

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.
../path/to/node_modules/rc-queue-anim/es/QueueAnim.js/__WEBPACK_DEFAULT_EXPORT__

I'm using all functional components, should I use fowardRef components?

julianclatro avatar Sep 07 '21 01:09 julianclatro

Can you provide an reproduction?

jljsj33 avatar Sep 22 '21 06:09 jljsj33