We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43bd16a commit 5b1d644Copy full SHA for 5b1d644
src/recoil/atom.ts
@@ -1,6 +1,8 @@
1
import { atom } from 'recoil';
2
import { recoilPersist } from 'recoil-persist';
3
4
+import { ACTIVITY_GENERATION } from '@/utils/generation';
5
+
6
const sessionStorage =
7
typeof window !== 'undefined' ? window.sessionStorage : undefined;
8
@@ -11,6 +13,6 @@ const { persistAtom } = recoilPersist({
11
13
12
14
export const currentGenerationState = atom<string>({
15
key: 'currentGenerationState',
- default: '34',
16
+ default: ACTIVITY_GENERATION,
17
effects_UNSTABLE: [persistAtom],
18
});
0 commit comments