mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Trash: empty/restore/delete now reflects immediately instead of needing an app restart (don't serve the volatile trash view from cache)
This commit is contained in:
@@ -310,7 +310,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const key = cacheKey();
|
const key = cacheKey();
|
||||||
const cached = noteCache.get(key);
|
// Never serve the trash view from cache: emptying / restoring / deleting changes it,
|
||||||
|
// and a stale cache left it showing cleared items until an app restart. Always re-read.
|
||||||
|
const cached = $viewMode === 'trash' ? undefined : noteCache.get(key);
|
||||||
if (cached) {
|
if (cached) {
|
||||||
$notes = cached;
|
$notes = cached;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user