-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: 초대링크를 통한 가입시 storeId 받아올 수 있게 로직 변경 #98
The head ref may contain hidden characters: "97-\uC9C1\uC6D0\uCD08\uB300\uB9C1\uD06C-\uC0DD\uC131\uACFC-\uAC00\uC785-\uD50C\uB85C\uC6B0\uB97C-\uC548\uC815\uD654\uD55C\uB2E4"
fix: 초대링크를 통한 가입시 storeId 받아올 수 있게 로직 변경 #98
Conversation
47a1075
to
71e9648
Compare
865c7a3
to
e917a5b
Compare
아직 머지하지 말아주세요! postRelation이 두번씩 호출되는 것 같아서 잠시 확인해보겠습니다 |
3a22453
to
cbafc74
Compare
cbafc74
to
8a6158c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다. 현재 아직도 PostPlan은 작동하지 않고 있나요?
const { mutateAsync: postRelationMutate } = usePostRelation(); | ||
const { mutate: postPlanListMutate } = usePostPlanList(); | ||
const queryClient = useQueryClient(); | ||
const router = useRouter(); | ||
|
||
const { mutate } = useMutation({ | ||
mutationKey: ["StaffJoin"], | ||
mutationFn: async ({ | ||
storeId, | ||
memberId, | ||
body, | ||
inviteSchedule, | ||
}: UsePostRelationProps & { inviteSchedule: InviteSchedule }) => { | ||
await postRelationMutate({ storeId, memberId, body }); | ||
postPlanListMutate({ storeId, memberId, inviteSchedule }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mutateAsync라는게 있었네요.. 이걸 알았으면 더 빨리 되었을것 같습니다.
postPlanListMutate도 await 걸 수 있을거 같아요
아니요 잘 작동합니다! |
#97