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

Method get

packages/frontend/src/decode.ts:15–17  ·  view source on GitHub ↗
(id: NodeID)

Source from the content-addressed store, hash-verified

13export class StoreNodeMap {
14 map = new Map<NodeID, {node: DecodedValue<ValueType.Store>; refs: number}>()
15 get(id: NodeID): DecodedValue<ValueType.Store> | null {
16 return this.map.get(id)?.node || null
17 }
18 addRef(id: NodeID, node: DecodedValue<ValueType.Store>) {
19 const entry = this.map.get(id)
20 if (entry) entry.refs++

Callers 15

getValueFunction · 0.80
createInspectorFunction · 0.80
pushInspectToggleFunction · 0.80
toggleValueNodeFunction · 0.80
trackStoreFunction · 0.80
untrackStoreFunction · 0.80
inspector.test.tsxFile · 0.80
encodeFunction · 0.80
clear_owner_observersFunction · 0.80
map_propsFunction · 0.80
getSdtIdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected