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

Function logOwnerList

packages/logger/src/log.ts:326–342  ·  view source on GitHub ↗
(
    owners: readonly T[],
    logGroup?: (owner: T) => void,
)

Source from the content-addressed store, hash-verified

324}
325
326export function logOwnerList<T extends Solid.Owner>(
327 owners: readonly T[],
328 logGroup?: (owner: T) => void,
329): void {
330 paddedForEach(
331 owners,
332 owner => NODE_TYPE_NAMES[getOwnerType(owner)],
333 (type, owner) => {
334 const label = [`${inGray(type)} %c${getNodeName(owner)}`, STYLES.grayBackground]
335 if (logGroup) {
336 console.groupCollapsed(...label)
337 logGroup(owner)
338 console.groupEnd()
339 } else console.log(...label)
340 },
341 )
342}
343
344//
345// PROPS

Callers 2

logComputationDetailsFunction · 0.85
logCausedUpdatesFunction · 0.85

Calls 4

getOwnerTypeFunction · 0.90
getNodeNameFunction · 0.90
paddedForEachFunction · 0.85
inGrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…