Lib: Remove manual data invalidation in favor of pocketbase subscriptions

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

@ -15,7 +15,6 @@
import { get_driver_headshot_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/drivers/$types";
@ -124,7 +123,6 @@
}
await pb.collection("drivers").update(driver.id, driver_data);
}
invalidateAll();
modalStore.close();
} catch (error) {
toastStore.trigger(get_error_toast("" + error));
@ -142,7 +140,6 @@
try {
await pb.collection("drivers").delete(driver.id);
invalidateAll();
modalStore.close();
} catch (error) {
toastStore.trigger(get_error_toast("" + error));