Lib: Remove manual data invalidation in favor of pocketbase subscriptions
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 31s

This commit is contained in:
2025-02-17 23:51:12 +01:00
parent 98b11f7b9b
commit c74b31907f
7 changed files with 0 additions and 20 deletions

View File

@ -18,7 +18,6 @@
import { get_team_banner_template, get_team_logo_template } from "$lib/database";
import { get_error_toast } from "$lib/toast";
import { pb } from "$lib/pocketbase";
import { invalidateAll } from "$app/navigation";
import { error } from "@sveltejs/kit";
import type { PageData } from "../../../routes/data/season/teams/$types";
@ -153,7 +152,6 @@
}
await pb.collection("teams").update(team.id, team_data);
}
invalidateAll();
modalStore.close();
} catch (error) {
toastStore.trigger(get_error_toast("" + error));
@ -171,7 +169,6 @@
try {
await pb.collection("teams").delete(team.id);
invalidateAll();
modalStore.close();
} catch (error) {
toastStore.trigger(get_error_toast("" + error));