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

Function diffUpdateTriggers

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

Source from the content-addressed store, hash-verified

87705 return dataChanged;
87706}
87707function diffUpdateTriggers(props, oldProps) {
87708 if (oldProps === null) return "oldProps is null, initial diff";
87709 if ("all" in props.updateTriggers) {
87710 var diffReason = diffUpdateTrigger(props, oldProps, "all");
87711 if (diffReason) return {
87712 all: true
87713 };
87714 }
87715 var triggerChanged = {};
87716 var reason = false;
87717 for(var triggerName in props.updateTriggers)if (triggerName !== "all") {
87718 var _diffReason = diffUpdateTrigger(props, oldProps, triggerName);
87719 if (_diffReason) {
87720 triggerChanged[triggerName] = true;
87721 reason = triggerChanged;
87722 }
87723 }
87724 return reason;
87725}
87726function diffExtensions(props, oldProps) {
87727 if (oldProps === null) return "oldProps is null, initial diff";
87728 var oldExtensions = oldProps.extensions;

Callers 1

diffPropsFunction · 0.70

Calls 1

diffUpdateTriggerFunction · 0.70

Tested by

no test coverage detected