(file: string)
| 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( |
no test coverage detected