Skip to content

Commit 5b1d644

Browse files
committed
refactor : currentGenerationState default값 utils 값으로 변경
1 parent 43bd16a commit 5b1d644

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/recoil/atom.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { atom } from 'recoil';
22
import { recoilPersist } from 'recoil-persist';
33

4+
import { ACTIVITY_GENERATION } from '@/utils/generation';
5+
46
const sessionStorage =
57
typeof window !== 'undefined' ? window.sessionStorage : undefined;
68

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

1214
export const currentGenerationState = atom<string>({
1315
key: 'currentGenerationState',
14-
default: '34',
16+
default: ACTIVITY_GENERATION,
1517
effects_UNSTABLE: [persistAtom],
1618
});

0 commit comments

Comments
 (0)