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

Function state

packages/app/src/context/tabs.tsx:287–289  ·  view source on GitHub ↗
(tab: Tab, name: string, init: () => T)

Source from the content-addressed store, hash-verified

285 navigate("/")
286 },
287 state<T>(tab: Tab, name: string, init: () => T) {
288 return memory.ensure(tabKey(tab), name, init)
289 },
290 }
291
292 return { ...actions, store, ready, recentReady }

Callers 6

DirectoryStatusPopoverFunction · 0.50
ServerStatusPopoverFunction · 0.50
collapsedFunction · 0.50
HomeProjectColumnFunction · 0.50
FileTabContentFunction · 0.50
renderFileFunction · 0.50

Calls 1

tabKeyFunction · 0.85

Tested by

no test coverage detected