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

Function ComponentState

docs/tests/v2/es6/js/sanddance.js:43134–43147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43132/*#__PURE__*/
43133function () {
43134 function ComponentState() {
43135 var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
43136
43137 _classCallCheck(this, ComponentState);
43138
43139 this.component = component;
43140 this.asyncProps = {}; // Prop values that the layer sees
43141
43142 this.onAsyncPropUpdated = function () {};
43143
43144 this.oldProps = EMPTY_PROPS; // Last props before update
43145
43146 this.oldAsyncProps = null; // Last props before update, with async values copied.
43147 }
43148
43149 _createClass(ComponentState, [{
43150 key: "getOldProps",

Callers

nothing calls this directly

Calls 1

_classCallCheckFunction · 0.70

Tested by

no test coverage detected