| 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() |
no outgoing calls
no test coverage detected
searching dependent graphs…