Skip to content

Commit

Permalink
fix: 이벤트 새로 고침 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
(hoooooony) committed Apr 12, 2024
1 parent d38cde5 commit 44b1de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const useAddEvent = (id: string) => {
mutationFn: (data: EventInfo) => addEvent(id, data),
onSuccess: () => {
showToast('success', '이벤트 추가에 성공했습니다.');
queryClient.invalidateQueries({ queryKey: shopKeys.eventList(Number(id)) });
navigate('/owner');
queryClient.refetchQueries({ queryKey: shopKeys.eventList(Number(id)) });
},
onError: (e) => {
if (isKoinError(e)) showToast('error', e.message);
Expand Down

0 comments on commit 44b1de8

Please sign in to comment.