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

Function clear

packages/app/src/context/comments.tsx:143–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 }
142
143 const clear = () => {
144 batch(() => {
145 setStore("comments", reconcile({}))
146 setFocus(null)
147 setActive(null)
148 })
149 }
150
151 return {
152 list,

Callers

nothing calls this directly

Calls 5

batchFunction · 0.85
setStoreFunction · 0.85
setFocusFunction · 0.85
setActiveFunction · 0.70
reconcileFunction · 0.50

Tested by

no test coverage detected