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

Function diffDataProps

docs/app/js/sanddance-app.js:87697–87706  ·  view source on GitHub ↗
(props, oldProps)

Source from the content-addressed store, hash-verified

87695 return null;
87696}
87697function diffDataProps(props, oldProps) {
87698 if (oldProps === null) return "oldProps is null, initial diff";
87699 var dataChanged = null;
87700 var dataComparator = props.dataComparator, _dataDiff = props._dataDiff;
87701 if (dataComparator) {
87702 if (!dataComparator(props.data, oldProps.data)) dataChanged = "Data comparator detected a change";
87703 } else if (props.data !== oldProps.data) dataChanged = "A new data container was supplied";
87704 if (dataChanged && _dataDiff) dataChanged = _dataDiff(props.data, oldProps.data) || dataChanged;
87705 return dataChanged;
87706}
87707function diffUpdateTriggers(props, oldProps) {
87708 if (oldProps === null) return "oldProps is null, initial diff";
87709 if ("all" in props.updateTriggers) {

Callers 1

diffPropsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected