We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42d9b50 commit 5e53204Copy full SHA for 5e53204
src/features/bookmark/model/useBookmarkHook.ts
@@ -28,6 +28,7 @@ export const useCreateBookmark = () => {
28
onError: (_err, eventId, context) => {
29
if (context?.previous) {
30
queryClient.setQueryData(['eventDetail', eventId], context.previous);
31
+ alert("좋아요 등록에 실패했습니다. 잠시후 다시 시도해 주세요.");
32
}
33
},
34
onSettled: (_data, _error, eventId) => {
@@ -55,6 +56,7 @@ export const useDeleteBookmark = () => {
55
56
onError: (_err, { eventId }, context) => {
57
58
59
+ alert("좋아요 삭제에 실패했습니다. 잠시후 다시 시도해 주세요.");
60
61
62
onSettled: (_data, _error, { eventId }) => {
0 commit comments