tableflip / react-native-toaster

Simple top-pop toast feedback messages for React Native, also Redux compatible
ISC License
85 stars 29 forks source link

Toast: Clear interval when component unmounts. #19

Closed vanbosse closed 6 years ago

vanbosse commented 6 years ago

This fixes updating the component after it has been unmounted already. The component is showing a warning otherwise. Being:

Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.