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

Function getAllPMCIds

dash/dash-renderer/src/actions/patternMatching.ts:32–45  ·  view source on GitHub ↗
(id: any, state: any, triggerKey: string)

Source from the content-addressed store, hash-verified

30 * @returns
31 */
32export function getAllPMCIds(id: any, state: any, triggerKey: string) {
33 const keysOfIds = keys(id);
34 const idKey = keysOfIds.join(',');
35 return state.paths.objs[idKey]
36 .map((obj: any) =>
37 keysOfIds.reduce((acc, key, i) => {
38 acc[key] = obj.values[i];
39 return acc;
40 }, {} as any)
41 )
42 .filter((obj: any) =>
43 equals(dissoc(triggerKey, obj), dissoc(triggerKey, id))
44 );
45}
46
47/**
48 * Replace the pattern matching ids with the actual trigger value

Callers 1

replacePMCFunction · 0.85

Calls 2

filterMethod · 0.80
reduceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…