MCPcopy Index your code
hub / github.com/plotly/dash / addOutputToMulti

Function addOutputToMulti

dash/dash-renderer/src/actions/dependencies.js:877–894  ·  view source on GitHub ↗
(outIdFinal, outIdProp)

Source from the content-addressed store, hash-verified

875 cbOut.push([]);
876
877 function addOutputToMulti(outIdFinal, outIdProp) {
878 if (!config.validate_callbacks) return;
879 multiGraph.addNode(outIdProp);
880 inputs.forEach(inObj => {
881 const {id: inId, property} = inObj;
882 if (typeof inId === 'object') {
883 const inIdList = makeAllIds(inId, outIdFinal);
884 inIdList.forEach(id => {
885 addInputToMulti(
886 combineIdAndProp({id, property}),
887 outIdProp
888 );
889 });
890 } else {
891 addInputToMulti(combineIdAndProp(inObj), outIdProp);
892 }
893 });
894 }
895
896 // We'll continue to use dep.output as its id, but add outputs as well
897 // for convenience and symmetry with the structure of inputs and state.

Callers 1

computeGraphsFunction · 0.85

Calls 4

combineIdAndPropFunction · 0.90
makeAllIdsFunction · 0.85
addInputToMultiFunction · 0.85
addNodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…