Warning - Can't call setState (or forceUpdate) on an unmounted component
eatoncw opened this issue · 1 comments
eatoncw commented
Hi, I'm implementing the UserInactivity component, but getting this warning when I navigate away from the current screen, and unmount that screen.
How do you stop the onAction function once its been rendered? It would be nice to run it at componentWillUnmount()
Thanks!