Skip to content

Commit

Permalink
refactor : currentGenerationState default값 utils 값으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Mar 10, 2024
1 parent 43bd16a commit 5b1d644
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/recoil/atom.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { atom } from 'recoil';
import { recoilPersist } from 'recoil-persist';

import { ACTIVITY_GENERATION } from '@/utils/generation';

const sessionStorage =
typeof window !== 'undefined' ? window.sessionStorage : undefined;

Expand All @@ -11,6 +13,6 @@ const { persistAtom } = recoilPersist({

export const currentGenerationState = atom<string>({
key: 'currentGenerationState',
default: '34',
default: ACTIVITY_GENERATION,
effects_UNSTABLE: [persistAtom],
});

0 comments on commit 5b1d644

Please sign in to comment.