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

Function markDebugNode

packages/logger/src/index.ts:62–75  ·  view source on GitHub ↗
(
    o: Solid.Owner | Solid.Signal,
    type?: 'computation' | 'signals' | 'owned',
)

Source from the content-addressed store, hash-verified

60): true | VoidFunction
61function markDebugNode(o: Solid.Signal): true | VoidFunction
62function markDebugNode(
63 o: Solid.Owner | Solid.Signal,
64 type?: 'computation' | 'signals' | 'owned',
65): true | VoidFunction {
66 let property: '$debug' | '$debugSignals' | '$debugOwned' | '$debugSignal'
67 if (type === 'computation') property = '$debug'
68 else if (type === 'signals') property = '$debugSignals'
69 else if (type === 'owned') property = '$debugOwned'
70 else property = '$debugSignal'
71
72 if ((o as any)[property]) return true
73 ;(o as any)[property] = true
74 return () => ((o as any)[property] = false)
75}
76
77interface DebugComputationOptions {
78 /** hook called during initial computation run? *(Defaults to `true`)* */

Callers 4

debugComputationFunction · 0.85
debugOwnerComputationsFunction · 0.85
debugSignalFunction · 0.85
debugOwnerSignalsFunction · 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…