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

Function BaseComponent1

docs/app/js/sanddance-app.js:22567–22579  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

22565 * @param context - The context for the component.
22566 */ // eslint-disable-next-line @typescript-eslint/no-explicit-any
22567 function BaseComponent1(props, context) {
22568 var _this = _super.call(this, props, context) || this;
22569 // eslint-disable-next-line deprecation/deprecation
22570 _makeAllSafe(_this, BaseComponent1.prototype, [
22571 "componentDidMount",
22572 "shouldComponentUpdate",
22573 "getSnapshotBeforeUpdate",
22574 "render",
22575 "componentDidUpdate",
22576 "componentWillUnmount",
22577 ]);
22578 return _this;
22579 }
22580 /**
22581 * When the component receives props, make sure the componentRef is updated.
22582 */ BaseComponent1.prototype.componentDidUpdate = function(prevProps, prevState) {

Callers

nothing calls this directly

Calls 1

_makeAllSafeFunction · 0.85

Tested by

no test coverage detected