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

Function diffProps

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

Source from the content-addressed store, hash-verified

87625 }
87626}
87627function diffProps(props, oldProps) {
87628 var propsChangedReason = compareProps({
87629 newProps: props,
87630 oldProps: oldProps,
87631 propTypes: getPropTypes(props),
87632 ignoreProps: {
87633 data: null,
87634 updateTriggers: null,
87635 extensions: null,
87636 transitions: null
87637 }
87638 });
87639 var dataChangedReason = diffDataProps(props, oldProps);
87640 var updateTriggersChangedReason = false;
87641 if (!dataChangedReason) updateTriggersChangedReason = diffUpdateTriggers(props, oldProps);
87642 return {
87643 dataChanged: dataChangedReason,
87644 propsChanged: propsChangedReason,
87645 updateTriggersChanged: updateTriggersChangedReason,
87646 extensionsChanged: diffExtensions(props, oldProps),
87647 transitionsChanged: diffTransitions(props, oldProps)
87648 };
87649}
87650function diffTransitions(props, oldProps) {
87651 if (!props.transitions) return null;
87652 var result = {};

Callers

nothing calls this directly

Calls 6

comparePropsFunction · 0.70
getPropTypesFunction · 0.70
diffDataPropsFunction · 0.70
diffUpdateTriggersFunction · 0.70
diffExtensionsFunction · 0.70
diffTransitionsFunction · 0.70

Tested by

no test coverage detected