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

Function getValueItem

packages/frontend/src/inspector.tsx:197–207  ·  view source on GitHub ↗
(value_item_id: debug.ValueItemID)

Source from the content-addressed store, hash-verified

195 const storeNodeMap = new decode.StoreNodeMap()
196
197 function getValueItem(value_item_id: debug.ValueItemID): Inspector.ValueItem | undefined {
198
199 const [type, id] = splitOnColon(value_item_id)
200
201 // eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
202 switch (type) {
203 case debug.ValueItemType.Signal: return state.signals[id]?.item
204 case debug.ValueItemType.Prop: return state.props?.record[id]?.item
205 case debug.ValueItemType.Value: return state.value ?? undefined
206 }
207 }
208
209 input.listen(e => {
210 // eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check

Callers 1

createInspectorFunction · 0.85

Calls 1

splitOnColonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…