MCPcopy
hub / github.com/anomalyco/opencode / queueRestore

Function queueRestore

packages/app/src/pages/session/file-tabs.tsx:135–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 }
134
135 const queueRestore = () => {
136 if (restoreFrame !== undefined) return
137
138 restoreFrame = requestAnimationFrame(() => {
139 restoreFrame = undefined
140 restore()
141 })
142 }
143
144 const handleScroll = (event: Event & { currentTarget: HTMLDivElement }) => {
145 if (code().length === 0) sync()

Callers

nothing calls this directly

Calls 1

restoreFunction · 0.70

Tested by

no test coverage detected