MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / componentDidMount

Method componentDidMount

xadmin-dashboard/src/widgets/WebGL.js:14–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13 // first add
14 componentDidMount() {
15 let onEvents = this.props.onEvents || {}
16 this.renderGLDom(glObj => glObj.resize())
17
18 //this.bindEvents(glObj, onEvents)
19
20 // on resize
21 elementResizeEvent(this.refs.webglDom, () => {
22 this.renderGLDom(glObj => glObj.resize())
23 })
24 }
25
26 // update
27 componentDidUpdate() {

Callers

nothing calls this directly

Calls 1

renderGLDomMethod · 0.95

Tested by

no test coverage detected