hook, store 리네이밍

This commit is contained in:
static
2024-12-27 21:50:04 +09:00
parent 400438c395
commit 1aafe126d6
11 changed files with 61 additions and 48 deletions

View File

@@ -1,14 +1,11 @@
import { error } from "@sveltejs/kit";
import { get } from "svelte/store";
import { keyExportState } from "$lib/hooks/goto";
import { keyExportState } from "$lib/hooks/gotoStateful";
import type { PageLoad } from "./$types";
export const load: PageLoad = async () => {
const state = get(keyExportState);
const state = keyExportState.get();
if (!state) {
error(403, "Forbidden");
}
keyExportState.set(null);
return state;
};