From a03ec8875c76df1ebf05648d8ee9c4de68df47bf Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 8 Jul 2025 09:29:56 -0700 Subject: [PATCH] Persist gql docs shown state --- src-web/atoms/graphqlSchemaAtom.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-web/atoms/graphqlSchemaAtom.ts b/src-web/atoms/graphqlSchemaAtom.ts index 256e162f..acdae2d2 100644 --- a/src-web/atoms/graphqlSchemaAtom.ts +++ b/src-web/atoms/graphqlSchemaAtom.ts @@ -1,3 +1,3 @@ -import { atom } from 'jotai'; +import { atomWithKVStorage } from '../lib/atoms/atomWithKVStorage'; -export const showGraphQLDocExplorerAtom = atom(false); +export const showGraphQLDocExplorerAtom = atomWithKVStorage('show_graphql_docs', false);