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

Function addNode

examples/sandbox/src/Recursive.tsx:96–102  ·  view source on GitHub ↗
(nodeId: number, parentsPath: number[])

Source from the content-addressed store, hash-verified

94 ])
95
96 const addNode = (nodeId: number, parentsPath: number[]) => {
97 setData(
98 // @ts-ignore
99 ...genNodePath({nodeId, parentsPath}),
100 (children: any) => [...children, {id: ++id, children: []}],
101 )
102 }
103
104 return (
105 <RecursiveContext.Provider value={addNode}>

Callers 1

NodeFunction · 0.85

Calls 1

genNodePathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…