MCPcopy Create free account
hub / github.com/reactjs/react-modal / componentWillUnmount

Method componentWillUnmount

src/components/ModalPortal.js:135–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 }
134
135 componentWillUnmount() {
136 if (this.state.isOpen) {
137 this.afterClose();
138 }
139 clearTimeout(this.closeTimer);
140 cancelAnimationFrame(this.openAnimationFrame);
141 }
142
143 setOverlayRef = overlay => {
144 this.overlay = overlay;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected