MCPcopy Create free account
hub / github.com/microsoft/SandDance / initializeComponentRef

Function initializeComponentRef

docs/app/js/sanddance-app.js:25219–25225  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

25217 */ parcelHelpers.export(exports, "initializeComponentRef", ()=>initializeComponentRef);
25218var _extendComponent = require("./extendComponent");
25219function initializeComponentRef(obj) {
25220 (0, _extendComponent.extendComponent)(obj, {
25221 componentDidMount: _onMount,
25222 componentDidUpdate: _onUpdate,
25223 componentWillUnmount: _onUnmount
25224 });
25225}
25226function _onMount() {
25227 _setComponentRef(this.props.componentRef, this);
25228}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected