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

Function parsePMCId

dash/dash-renderer/src/actions/patternMatching.ts:12–22  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

10 * @returns The id object.
11 */
12export function parsePMCId(id: string): [any, string | undefined] {
13 let componentId, propName;
14 const index = id.lastIndexOf('}');
15 if (index + 2 < id.length) {
16 propName = id.substring(index + 2);
17 componentId = JSON.parse(id.substring(0, index + 1));
18 } else {
19 componentId = JSON.parse(id);
20 }
21 return [componentId, propName];
22}
23
24/**
25 * Get all the associated ids for an id.

Callers 2

sideUpdateFunction · 0.90
__executeFunction · 0.90

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…