Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat/#287] 참여자 가능시간 입력시 새로고침하면 참여자 이름이 날아가는 문제 수정 #289

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/atoms/atom.ts
Original file line number Diff line number Diff line change
@@ -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<boolean>({
key: 'methodStateAtom',
Expand Down Expand Up @@ -41,7 +41,10 @@ export const clickedTimeSlotAtom = atom<string>({
default: undefined,
});

const { persistAtom } = recoilPersist();

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