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

Function replace

packages/app/src/context/comments.tsx:135–141  ·  view source on GitHub ↗
(comments: LineComment[])

Source from the content-addressed store, hash-verified

133 }
134
135 const replace = (comments: LineComment[]) => {
136 batch(() => {
137 setStore("comments", reconcile(group(comments)))
138 setFocus(null)
139 setActive(null)
140 })
141 }
142
143 const clear = () => {
144 batch(() => {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected