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

Function onNodeUpdate

packages/debugger/src/dependency/index.ts:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 let clearListeners: VoidFunction | null = null
22
23 const onNodeUpdate: OnNodeUpdate = id => {
24 // separate the callback from the computation
25 queueMicrotask(() => {
26 if (!props.enabled()) return
27 props.onNodeUpdate(id)
28 triggerInspect()
29 })
30 }
31
32 const inspectedNode = s.createMemo(() => {
33 const state = props.inspectedState()

Callers 1

addNodeToGraphFunction · 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…