MCPcopy
hub / github.com/souporserious/react-measure / componentWillUnmount

Method componentWillUnmount

src/with-content-rect.js:56–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 componentWillUnmount() {
57 if (this._window !== null) {
58 this._window.cancelAnimationFrame(this._animationFrameID)
59 }
60
61 if (this._resizeObserver !== null) {
62 this._resizeObserver.disconnect()
63 this._resizeObserver = null
64 }
65 }
66
67 measure = entries => {
68 const contentRect = getContentRect(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected