MCPcopy Index your code
hub / github.com/gre/gl-react / componentDidMount

Method componentDidMount

packages/gl-react/src/Node.tsx:315–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313 static contextType = GLContext;
314
315 componentDidMount() {
316 const {
317 glSurface: { gl },
318 } = this.context;
319 if (gl) this._prepareGLObjects(gl);
320 this.context.glParent._addGLNodeChild(this);
321 this.redraw();
322 if (this.props.sync) this.flush();
323 }
324
325 componentWillUnmount() {
326 const { capturePixelsArray } = this;

Callers

nothing calls this directly

Calls 4

_prepareGLObjectsMethod · 0.95
redrawMethod · 0.80
_addGLNodeChildMethod · 0.65
flushMethod · 0.65

Tested by

no test coverage detected