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

Function getPath

dash/dash-renderer/src/actions/paths.js:70–83  ·  view source on GitHub ↗
(paths, id)

Source from the content-addressed store, hash-verified

68}
69
70export function getPath(paths, id) {
71 if (typeof id === 'object') {
72 const keys = Object.keys(id).sort();
73 const keyStr = keys.join(',');
74 const keyPaths = paths.objs[keyStr];
75 if (!keyPaths) {
76 return false;
77 }
78 const values = props(keys, id);
79 const pathObj = find(propEq(values, 'values'), keyPaths);
80 return pathObj && pathObj.path;
81 }
82 return paths.strs[id];
83}

Callers 15

getLayoutFunction · 0.90
moveHistoryFunction · 0.90
isAppReady.jsFile · 0.90
validateStateFunction · 0.90
validateMapFunction · 0.90
pruneCallbacksFunction · 0.90
resolveDepsFunction · 0.90
updateComponentFunction · 0.90
sideUpdateFunction · 0.90
__executeFunction · 0.90
getComponentFunction · 0.90
set_propsFunction · 0.90

Calls 2

keysMethod · 0.80
sortMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…