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

Function compareProps

packages/sanddance-react/src/viewer.tsx:25–31  ·  view source on GitHub ↗
(viewer: Viewer, insight: specs.Insight)

Source from the content-addressed store, hash-verified

23}
24
25export function compareProps(viewer: Viewer, insight: specs.Insight) {
26 const currentInsight = viewer.getInsight();
27 const a = addNullable(currentInsight, { ...viewer.insight.signalValues, ...currentInsight.signalValues });
28 const b = addNullable(insight, { ...a.signalValues, ...insight.signalValues });
29 const compare = deepCompare(a, b);
30 return { a, b, compare };
31}
32
33function _SandDanceReact(props: Props) {
34

Callers 1

viewMethod · 0.70

Calls 2

addNullableFunction · 0.70
getInsightMethod · 0.45

Tested by

no test coverage detected