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

Function addCallback

dash/dash-renderer/src/actions/dependencies.js:1275–1292  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

1273 const callbacks = [];
1274
1275 function addCallback(callback) {
1276 if (callback) {
1277 const foundIndex = foundCbIds[callback.resolvedId];
1278 if (foundIndex !== undefined) {
1279 const foundCb = callbacks[foundIndex];
1280 foundCb.changedPropIds = mergeMax(
1281 foundCb.changedPropIds,
1282 callback.changedPropIds
1283 );
1284 if (callback.initialCall) {
1285 foundCb.initialCall = true;
1286 }
1287 } else {
1288 foundCbIds[callback.resolvedId] = callbacks.length;
1289 callbacks.push(callback);
1290 }
1291 }
1292 }
1293
1294 function addCallbackIfArray(idStr) {
1295 return cb =>

Callers 2

addCallbackIfArrayFunction · 0.85
handleOneIdFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…