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

Function getNodeState

packages/logger/src/log.ts:50–58  ·  view source on GitHub ↗
(owner: Solid.Owner | Solid.Signal | NodeState)

Source from the content-addressed store, hash-verified

48}
49
50export function getNodeState(owner: Solid.Owner | Solid.Signal | NodeState): NodeState {
51 if ('type' in owner && 'typeName' in owner && 'name' in owner) return owner
52 const type = getNodeType(owner)
53 return {
54 type,
55 typeName: NODE_TYPE_NAMES[type],
56 name: getNodeName(owner) ?? UNKNOWN,
57 }
58}
59export function getNodeStateWithValue(
60 owner: Solid.Computation | Solid.Signal | NodeStateWithValue,
61): NodeStateWithValue {

Callers 6

debugComputationFunction · 0.90
observeSourcesFunction · 0.90
debugOwnerComputationsFunction · 0.90
debugSignalFunction · 0.90
debugPropsFunction · 0.90
logComputationDetailsFunction · 0.85

Calls 2

getNodeTypeFunction · 0.90
getNodeNameFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…