diff options
Diffstat (limited to 'source/library/GraphiQL.svelte')
| -rw-r--r-- | source/library/GraphiQL.svelte | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/library/GraphiQL.svelte b/source/library/GraphiQL.svelte index 4250fd3..0f1e0fd 100644 --- a/source/library/GraphiQL.svelte +++ b/source/library/GraphiQL.svelte @@ -48,8 +48,10 @@ toolbarExtras }: Props = $props(); + // svelte-ignore state_referenced_locally const resolvedStorage = storage ?? (typeof globalThis.localStorage !== "undefined" ? + // svelte-ignore state_referenced_locally createLocalStorage(namespace) : createMemoryStorage()); @@ -58,7 +60,9 @@ const schema = new SchemaStore(); const session = new SessionStore(resolvedStorage); + // svelte-ignore state_referenced_locally if (initialQuery && session.active && session.active.query === "") + // svelte-ignore state_referenced_locally session.updateQuery(session.active.id, initialQuery); let bottomPane = $state<"variables" | "headers">("variables"); |