aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-21 13:14:13 +0000
committerFuwn <[email protected]>2026-05-21 13:14:13 +0000
commit5379e8e8d7595256266c480e09064cf9afd312aa (patch)
tree893d3435e17a30cfafda6163cc24a97a36787c26 /src/lib
parentfix(select): cap width to container to prevent mobile overflow (diff)
downloaddue.moe-5379e8e8d7595256266c480e09064cf9afd312aa.tar.xz
due.moe-5379e8e8d7595256266c480e09064cf9afd312aa.zip
fix(lists): cross-trigger Upcoming and Due refresh on airing/interval
Countdown timeout in CleanAnimeList and keyCacher interval in DueAnimeList only reassigned their own animeLists, so an episode airing on Upcoming never propagated to Due (and vice versa) until a manual refresh. Bump revalidateAnime instead, so both panels refresh through the shared reactive path.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/List/Anime/CleanAnimeList.svelte2
-rw-r--r--src/lib/List/Anime/DueAnimeList.svelte14
2 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/List/Anime/CleanAnimeList.svelte b/src/lib/List/Anime/CleanAnimeList.svelte
index 76701a93..23d87a97 100644
--- a/src/lib/List/Anime/CleanAnimeList.svelte
+++ b/src/lib/List/Anime/CleanAnimeList.svelte
@@ -169,7 +169,7 @@ const scheduleAiringRefresh = () => {
m.nextAiringEpisode?.airingAt && m.nextAiringEpisode.airingAt < now,
)
)
- animeLists = cleanCache(user, $identity);
+ $revalidateAnime = $revalidateAnime + 1;
scheduleAiringRefresh();
},
diff --git a/src/lib/List/Anime/DueAnimeList.svelte b/src/lib/List/Anime/DueAnimeList.svelte
index d2c47ebe..29af4a88 100644
--- a/src/lib/List/Anime/DueAnimeList.svelte
+++ b/src/lib/List/Anime/DueAnimeList.svelte
@@ -31,19 +31,7 @@ const restartKeyCacher = (cacheMinutes: number) => {
keyCacheMinutes = cacheMinutes;
keyCacher = setInterval(
() => {
- startTime = performance.now();
- endTime = -1;
- animeLists = mediaListCollection(
- user,
- $identity,
- Type.Anime,
- $anime,
- $lastPruneTimes.anime,
- {
- forcePrune: true,
- addNotification,
- },
- );
+ $revalidateAnime = $revalidateAnime + 1;
},
cacheMinutes * 1000 * 60,
);