From b093fbb10a24054c4ef62b0bd13f28d9bfe6f121 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Sat, 14 Mar 2026 10:46:15 -0400 Subject: [PATCH] fix(12-02): invalidate library store cache on LibraryRemoved event Track list, albums, artists, and genres views now refresh immediately after a library is removed instead of showing stale cached data. --- frontend/src/store/library-store.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/store/library-store.ts b/frontend/src/store/library-store.ts index 88a8c3e..808992e 100644 --- a/frontend/src/store/library-store.ts +++ b/frontend/src/store/library-store.ts @@ -52,6 +52,9 @@ class LibraryStore { EventsOn(Events.LibraryScanComplete, () => { this.invalidate(); }); + EventsOn(Events.LibraryRemoved, () => { + this.invalidate(); + }); this.loadCoverSize(); this.deferEagerFetch();