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.
This commit is contained in:
@@ -52,6 +52,9 @@ class LibraryStore {
|
|||||||
EventsOn(Events.LibraryScanComplete, () => {
|
EventsOn(Events.LibraryScanComplete, () => {
|
||||||
this.invalidate();
|
this.invalidate();
|
||||||
});
|
});
|
||||||
|
EventsOn(Events.LibraryRemoved, () => {
|
||||||
|
this.invalidate();
|
||||||
|
});
|
||||||
|
|
||||||
this.loadCoverSize();
|
this.loadCoverSize();
|
||||||
this.deferEagerFetch();
|
this.deferEagerFetch();
|
||||||
|
|||||||
Reference in New Issue
Block a user