diff --git a/src/atoms/atom.ts b/src/atoms/atom.ts index cdd05ea2..066f705d 100644 --- a/src/atoms/atom.ts +++ b/src/atoms/atom.ts @@ -1,7 +1,7 @@ -import { DateStates, ScheduleStates, TimeStates } from 'pages/legacy/selectSchedule/types/Schedule'; - import { PreferTime } from 'components/legacy/scheduleComponents/types/AvailableScheduleType'; +import { DateStates, ScheduleStates } from 'pages/legacy/selectSchedule/types/Schedule'; import { atom } from 'recoil'; +import { recoilPersist } from 'recoil-persist'; export const methodStateAtom = atom({ key: 'methodStateAtom', @@ -41,7 +41,10 @@ export const clickedTimeSlotAtom = atom({ default: undefined, }); +const { persistAtom } = recoilPersist(); + export const userNameAtom = atom({ key: 'userNameAtom', default: '', + effects_UNSTABLE: [persistAtom], });