react-toastify: clearTimeout() on componentWillUnmount
I’m getting this error when i navigate to another page:
Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the ToastContainer component.
Shouldn’t the component clearTimeout() when it unmounts?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (8 by maintainers)
Sorry for the late answer, i moved the ToastContainer to the router component parent to fix it, like you said in the last comment.