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

Method componentWillUnmount

packages/gl-react/src/createSurface.tsx:135–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 }
134
135 componentWillUnmount() {
136 this._stopLoop();
137 this._destroyGL();
138 const i = _instances.indexOf(this);
139 if (i !== -1) _instances.splice(i, 1);
140 this.getVisitors().forEach((v) => v.onSurfaceUnmount(this as any));
141 }
142
143 componentDidUpdate() {
144 this.redraw();

Callers

nothing calls this directly

Calls 4

_stopLoopMethod · 0.95
_destroyGLMethod · 0.95
getVisitorsMethod · 0.95
onSurfaceUnmountMethod · 0.65

Tested by

no test coverage detected