Open
Description
use-measure@0.2.2
This error happens in our app when a component using use-measure
is unmounted due to a resize:
use-measure.js:46: Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
Line 46 maps to the setContentRect(entry.contentRect)
call inside the rAF closure. I'm guessing the rAF request isn't cancelled in time?
Metadata
Metadata
Assignees
Labels
No labels