Method call callback setting state on unmounted component

We just created an HOC which has the _isMounted property. The HOC adds a callIfMounted() method which executes the callback if still mounted

1 Like