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

Function logInitialValue

packages/logger/src/log.ts:231–240  ·  view source on GitHub ↗
(node: Solid.Signal | NodeStateWithValue)

Source from the content-addressed store, hash-verified

229}
230
231export function logInitialValue(node: Solid.Signal | NodeStateWithValue): void {
232 const {type, typeName, value, name} = getNodeStateWithValue(node)
233 console.log(
234 `%c${typeName} %c${name}%c initial value ${inGray('=')}${getValueSpecifier(value)}`,
235 '',
236 `${STYLES.bold} ${getNameStyle(type)}`,
237 '',
238 value,
239 )
240}
241
242export function logSignalValue(signal: Solid.Signal | NodeStateWithValue): void {
243 const {type, typeName, name, value} = getNodeStateWithValue(signal)

Callers 1

debugSignalFunction · 0.90

Calls 4

getNodeStateWithValueFunction · 0.85
inGrayFunction · 0.85
getValueSpecifierFunction · 0.85
getNameStyleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…