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

Function remove

packages/app/src/context/comments.tsx:119–124  ·  view source on GitHub ↗
(file: string, id: string)

Source from the content-addressed store, hash-verified

117 }
118
119 const remove = (file: string, id: string) => {
120 batch(() => {
121 setStore("comments", file, (items) => (items ?? []).filter((item) => item.id !== id))
122 setFocus((current) => (current?.file === file && current.id === id ? null : current))
123 })
124 }
125
126 const update = (file: string, id: string, comment: string) => {
127 setStore("comments", file, (items) =>

Callers

nothing calls this directly

Calls 3

batchFunction · 0.85
setStoreFunction · 0.85
setFocusFunction · 0.85

Tested by

no test coverage detected