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

Function getStash

dash/dash-renderer/src/observers/prioritizedCallbacks.ts:33–54  ·  view source on GitHub ↗
(
    cb: IPrioritizedCallback,
    paths: any
)

Source from the content-addressed store, hash-verified

31};
32
33const getStash = (
34 cb: IPrioritizedCallback,
35 paths: any
36): {
37 allOutputs: ILayoutCallbackProperty[][];
38 allPropIds: any[];
39} => {
40 const {getOutputs} = cb;
41 const allOutputs = getOutputs(paths);
42 const flatOutputs: any[] = flatten(allOutputs);
43 const allPropIds: any[] = [];
44
45 const reqOut: any = {};
46 flatOutputs.forEach(({id, property}) => {
47 const idStr = stringifyId(id);
48 const idOut = (reqOut[idStr] = reqOut[idStr] || []);
49 idOut.push(property);
50 allPropIds.push(combineIdAndProp({id: idStr, property}));
51 });
52
53 return {allOutputs, allPropIds};
54};
55
56const getIds = (cb: ICallback, paths: any) => {
57 const items = [

Callers 1

Calls 3

stringifyIdFunction · 0.90
combineIdAndPropFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…