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

Function removeNestedStoreRefs

packages/frontend/src/decode.ts:204–209  ·  view source on GitHub ↗
(value: DecodedValue)

Source from the content-addressed store, hash-verified

202 isObjectType(value) && value.length > 0
203
204function removeNestedStoreRefs(value: DecodedValue) {
205 if (Seen.has(value)) return
206 Seen.add(value)
207 value.type === ValueType.Store && StoreRefMap.removeRef(value.id)
208 isValueNested(value) && value.value && Object.values(value.value).forEach(removeNestedStoreRefs)
209}
210
211/**
212 * Decode a list of encoded values into a tree of decoded values.

Callers 1

decodeValueFunction · 0.85

Calls 2

isValueNestedFunction · 0.85
removeRefMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…