()
| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected