MCPcopy Index your code
hub / github.com/microsoft/SandDance / compareProps

Function compareProps

docs/app/js/sanddance-app.js:11189–11199  ·  view source on GitHub ↗
(viewer, insight)

Source from the content-addressed store, hash-verified

11187 return withNulls;
11188}
11189function compareProps(viewer, insight) {
11190 const currentInsight = viewer.getInsight();
11191 const a = addNullable(currentInsight, Object.assign(Object.assign({}, viewer.insight.signalValues), currentInsight.signalValues));
11192 const b = addNullable(insight, Object.assign(Object.assign({}, a.signalValues), insight.signalValues));
11193 const compare = (0, _util.deepCompare)(a, b);
11194 return {
11195 a,
11196 b,
11197 compare
11198 };
11199}
11200function _SandDanceReact(props) {
11201 class __SandDanceReact extends (0, _base.base).react.Component {
11202 layout() {

Callers 3

viewMethod · 0.70
diffPropsFunction · 0.70
diffUpdateTriggerFunction · 0.70

Calls 3

addNullableFunction · 0.70
comparePropValuesFunction · 0.70
getInsightMethod · 0.45

Tested by

no test coverage detected