blob: 3a9ff067362a69022e600283e3bb9728bc92a7a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { browser } from "$app/environment";
import { addNotification } from "$lib/Notification/store";
import { options } from "$lib/Notification/options";
import revalidateAnime from "$stores/revalidateAnime";
import revalidateManga from "$stores/revalidateManga";
export const invalidateListCaches = () => {
if (!browser) return;
revalidateAnime.update((n) => n + 1);
revalidateManga.update((n) => n + 1);
addNotification(
options({
heading: "Anime and manga list caches successfully invalidated",
}),
);
};
|