Skip to content

Commit

Permalink
SKRF-468 fix: 행사상세페이지 invalidQueries 오류 해결 (#227)
Browse files Browse the repository at this point in the history
* fix: invalid 오류 해결

* fix: async await 제거
  • Loading branch information
SongInjae authored Dec 1, 2023
1 parent eb9e357 commit bcaf944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/query/event/usePostEventApplyMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const usePostEventApplyMutation = ({ eventId }: usePostEventApplyMutation) => {
const { mutate: applyEvent, isLoading: isApplyLoading } = useMutation({
mutationFn: postApplyEvent,
onSuccess: () => {
queryClient.invalidateQueries([EVENT_DETAIL_QUERY_KEY]);
queryClient.invalidateQueries([EVENT_DETAIL_QUERY_KEY.EVENT_DETAIL]);
createToast({ message: '성공적으로 신청되었습니다.', toastType: 'success' });
navigate(`/event/${eventId}`);
},
Expand Down

0 comments on commit bcaf944

Please sign in to comment.