fix(app): message loading

This commit is contained in:
Adam 2026-03-12 16:14:51 -05:00
commit f2cad046e6
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 104 additions and 16 deletions

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
}),
)
})
}