IndexedDB에 가끔 파일 및 디렉터리 정보를 저장하지 못하던 버그 수정

This commit is contained in:
static
2026-01-18 16:32:06 +09:00
parent 3b0cfd5a92
commit 9635d2a51b

View File

@@ -34,7 +34,7 @@ export class FilesystemCache<K, V extends object> {
}
(state.value
? Promise.resolve(state.value)
? Promise.resolve($state.snapshot(state.value) as V)
: this.options.fetchFromIndexedDB(key).then((loadedInfo) => {
if (loadedInfo) {
state.value = loadedInfo;