MCPcopy Create free account
hub / github.com/anomalyco/opencode / load

Function load

packages/app/src/context/comments.tsx:229–232  ·  view source on GitHub ↗
(dir: string, id: string | undefined)

Source from the content-addressed store, hash-verified

227 onCleanup(() => cache.clear())
228
229 const load = (dir: string, id: string | undefined) => {
230 const key = sessionKey(dir, id)
231 return cache.get(key).value
232 }
233
234 const session = createMemo(() => load(base64Encode(sdk().directory), params.id))
235

Callers 1

comments.tsxFile · 0.70

Calls 2

sessionKeyFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected