Skip to content

Commit

Permalink
Update DocsContext.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghengxin committed May 14, 2024
1 parent aa8ec6e commit 485f229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/screens/DocsScreen/DocsContext.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { useLocalStorage } from 'usehooks-ts';
import { useLocalStorage, useSessionStorage } from 'usehooks-ts';

import { DEFAULT_CODE_LANGUAGE, CODE_LANGUAGES } from '../../../constants/code-languages';
import { SEARCH_PARAMS_KEYS } from '../../../constants/search-params';
Expand Down Expand Up @@ -56,7 +56,7 @@ export function DocsContextProvider({
DEFAULT_PACKAGE_MANAGER
);

const [renderer, setRenderer] = useLocalStorage<Renderer>(
const [renderer, setRenderer] = useSessionStorage<Renderer>(
LS_SELECTED_RENDERER_KEY,
defaultRenderer
);
Expand Down

0 comments on commit 485f229

Please sign in to comment.