Open jrios6 opened 4 years ago
Same here
the same question
I am also receiving this error
I think the temp solution for this situation would be not to set delay
on Typist.Backspace
, but instead use Typist.Delay
before, like this:
working without memory leaks:
<Typist.Delay ms={1100} />
<Typist.Backspace count={name.length} />
working with leaks:
<Typist.Backspace count={name.length} delay={1100} />
I am receiving the following memory leak warning after unmounting a parent container that uses Typist and Typist.Backspace. I presume that this is due to Typist.Backspace's async function still running even after unmount.
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.