DEV Community

Discussion on: How to use componentWillUnmount with Functional Components in React

Collapse
 
robmarshall profile image
Robert Marshall

Able to give a bit more context? If you are passing this state out of the component (e.g. to a parent) and then unmounting this component I imagine you would have problems.