@arbidocs/react 0.5.39 → 0.5.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +21 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9595,7 +9595,9 @@ function useCreateEvent() {
|
|
|
9595
9595
|
return useMutation({
|
|
9596
9596
|
mutationFn: (body) => write({ kind: "create", body }, () => arbi.calendar.createEvent(body)),
|
|
9597
9597
|
networkMode,
|
|
9598
|
-
onSuccess: () =>
|
|
9598
|
+
onSuccess: () => {
|
|
9599
|
+
void invalidateCalendarEvents(qc);
|
|
9600
|
+
}
|
|
9599
9601
|
});
|
|
9600
9602
|
}
|
|
9601
9603
|
function useUpdateEvent() {
|
|
@@ -9605,7 +9607,9 @@ function useUpdateEvent() {
|
|
|
9605
9607
|
return useMutation({
|
|
9606
9608
|
mutationFn: ({ target, body }) => write({ kind: "update", target, body }, () => arbi.calendar.updateEvent(target, body)),
|
|
9607
9609
|
networkMode,
|
|
9608
|
-
onSuccess: () =>
|
|
9610
|
+
onSuccess: () => {
|
|
9611
|
+
void invalidateCalendarEvents(qc);
|
|
9612
|
+
}
|
|
9609
9613
|
});
|
|
9610
9614
|
}
|
|
9611
9615
|
function useDeleteEvent() {
|
|
@@ -9615,7 +9619,9 @@ function useDeleteEvent() {
|
|
|
9615
9619
|
return useMutation({
|
|
9616
9620
|
mutationFn: (target) => write({ kind: "delete", target }, () => arbi.calendar.deleteEvent(target)),
|
|
9617
9621
|
networkMode,
|
|
9618
|
-
onSuccess: () =>
|
|
9622
|
+
onSuccess: () => {
|
|
9623
|
+
void invalidateCalendarEvents(qc);
|
|
9624
|
+
}
|
|
9619
9625
|
});
|
|
9620
9626
|
}
|
|
9621
9627
|
function useMoveEvent() {
|
|
@@ -9623,7 +9629,9 @@ function useMoveEvent() {
|
|
|
9623
9629
|
const qc = useQueryClient();
|
|
9624
9630
|
return useMutation({
|
|
9625
9631
|
mutationFn: ({ id, calendarId }) => arbi.calendar.moveEvent(id, calendarId),
|
|
9626
|
-
onSuccess: () =>
|
|
9632
|
+
onSuccess: () => {
|
|
9633
|
+
void invalidateCalendarEvents(qc);
|
|
9634
|
+
}
|
|
9627
9635
|
});
|
|
9628
9636
|
}
|
|
9629
9637
|
function useRespondToEvent() {
|
|
@@ -9633,7 +9641,9 @@ function useRespondToEvent() {
|
|
|
9633
9641
|
return useMutation({
|
|
9634
9642
|
mutationFn: (params) => write({ kind: "respond", params }, () => arbi.calendar.respond(params)),
|
|
9635
9643
|
networkMode,
|
|
9636
|
-
onSuccess: () =>
|
|
9644
|
+
onSuccess: () => {
|
|
9645
|
+
void invalidateCalendarEvents(qc);
|
|
9646
|
+
}
|
|
9637
9647
|
});
|
|
9638
9648
|
}
|
|
9639
9649
|
function useImportCalendar() {
|
|
@@ -9641,7 +9651,9 @@ function useImportCalendar() {
|
|
|
9641
9651
|
const qc = useQueryClient();
|
|
9642
9652
|
return useMutation({
|
|
9643
9653
|
mutationFn: ({ ics, calendarId }) => arbi.calendar.importIcs(ics, calendarId),
|
|
9644
|
-
onSuccess: () =>
|
|
9654
|
+
onSuccess: () => {
|
|
9655
|
+
void invalidateCalendarEvents(qc);
|
|
9656
|
+
}
|
|
9645
9657
|
});
|
|
9646
9658
|
}
|
|
9647
9659
|
function useShareCalendar() {
|
|
@@ -9705,7 +9717,9 @@ function useDecideCounter() {
|
|
|
9705
9717
|
accept,
|
|
9706
9718
|
comment
|
|
9707
9719
|
}) => arbi.calendar.decideCounter(id, accept, comment),
|
|
9708
|
-
onSuccess: () =>
|
|
9720
|
+
onSuccess: () => {
|
|
9721
|
+
void invalidateCalendarEvents(qc);
|
|
9722
|
+
}
|
|
9709
9723
|
});
|
|
9710
9724
|
}
|
|
9711
9725
|
function usePublishCalendar() {
|