TaylorBriggs/react-native-typewriter

Warning: Can't perform a React state update on an unmounted component.

TheInternet opened this issue · 2 comments

I am seeing this warning upon navigating away in certain cases. Its not deterministic (can't reproduce 100% of the time), but its probably happening 1 in 3 times the component unmounts.

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 %s.%s, the componentWillUnmount method,

Its appears the issue is related when referring to a non-hard coded text.

<TypeWriter typing={1} maxDelay={40} fixed={true} >
  Hello {name}!
</TypeWriter>

Apologies - I made an seemingly unrelated fix and the issue seems to have gone away!

Sorry for any inconvenience!