MCPcopy Create free account
hub / github.com/gre/gl-react / componentWillUnmount

Method componentWillUnmount

packages/gl-react-dom/src/GLViewDOM.tsx:117–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 }
116
117 componentWillUnmount() {
118 if (this.gl) {
119 this.gl = null;
120 }
121 const { canvas } = this;
122 if (canvas) {
123 canvas.removeEventListener("webglcontextlost", this._onContextLost);
124 canvas.removeEventListener(
125 "webglcontextrestored",
126 this._onContextRestored
127 );
128 }
129 }
130
131 render() {
132 const { error } = this.state;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected