MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / genNodePath

Function genNodePath

examples/sandbox/src/Recursive.tsx:17–24  ·  view source on GitHub ↗
({nodeId, parentsPath = [], accessKey = 'children'}: genNodePathInterface)

Source from the content-addressed store, hash-verified

15 accessKey?: string
16}
17function genNodePath({nodeId, parentsPath = [], accessKey = 'children'}: genNodePathInterface) {
18 let path = parentsPath.concat(nodeId)
19 let nodePath: Array<Function | string> = []
20 path.forEach(id => {
21 nodePath.push(...[(child: NodeType) => child.id === id, accessKey])
22 })
23 return nodePath
24}
25
26// Printed url path
27function genNodeUrl(nodeProps: any) {

Callers 1

addNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…