fix(app): message loading

This commit is contained in:
Adam
2026-03-12 16:14:51 -05:00
parent 4178addbca
commit 9e4fa3c2c7
2 changed files with 103 additions and 15 deletions
+9 -2
View File
@@ -233,8 +233,15 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
})
})
.finally(() => {
if (!tracked(input.directory, input.sessionID)) return
setMeta("loading", key, false)
setMeta(
produce((draft) => {
if (!tracked(input.directory, input.sessionID)) {
delete draft.loading[key]
return
}
draft.loading[key] = false
}),
)
})
}