MCPcopy Index your code
hub / github.com/anomalyco/opencode / setLoading

Function setLoading

packages/app/src/context/file.tsx:128–137  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

126 }
127
128 const setLoading = (file: string) => {
129 setStore(
130 "file",
131 file,
132 produce((draft) => {
133 draft.loading = true
134 draft.error = undefined
135 }),
136 )
137 }
138
139 const setLoaded = (file: string, content: FileState["content"]) => {
140 setStore(

Callers 4

handleSubmitFunction · 0.85
DialogMcpFunction · 0.85
navigateFunction · 0.85
loadFunction · 0.85

Calls 1

setStoreFunction · 0.85

Tested by

no test coverage detected