@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.cjs
CHANGED
|
@@ -9586,7 +9586,9 @@ function useCreateEvent() {
|
|
|
9586
9586
|
return reactQuery.useMutation({
|
|
9587
9587
|
mutationFn: (body) => write({ kind: "create", body }, () => arbi.calendar.createEvent(body)),
|
|
9588
9588
|
networkMode,
|
|
9589
|
-
onSuccess: () =>
|
|
9589
|
+
onSuccess: () => {
|
|
9590
|
+
void invalidateCalendarEvents(qc);
|
|
9591
|
+
}
|
|
9590
9592
|
});
|
|
9591
9593
|
}
|
|
9592
9594
|
function useUpdateEvent() {
|
|
@@ -9596,7 +9598,9 @@ function useUpdateEvent() {
|
|
|
9596
9598
|
return reactQuery.useMutation({
|
|
9597
9599
|
mutationFn: ({ target, body }) => write({ kind: "update", target, body }, () => arbi.calendar.updateEvent(target, body)),
|
|
9598
9600
|
networkMode,
|
|
9599
|
-
onSuccess: () =>
|
|
9601
|
+
onSuccess: () => {
|
|
9602
|
+
void invalidateCalendarEvents(qc);
|
|
9603
|
+
}
|
|
9600
9604
|
});
|
|
9601
9605
|
}
|
|
9602
9606
|
function useDeleteEvent() {
|
|
@@ -9606,7 +9610,9 @@ function useDeleteEvent() {
|
|
|
9606
9610
|
return reactQuery.useMutation({
|
|
9607
9611
|
mutationFn: (target) => write({ kind: "delete", target }, () => arbi.calendar.deleteEvent(target)),
|
|
9608
9612
|
networkMode,
|
|
9609
|
-
onSuccess: () =>
|
|
9613
|
+
onSuccess: () => {
|
|
9614
|
+
void invalidateCalendarEvents(qc);
|
|
9615
|
+
}
|
|
9610
9616
|
});
|
|
9611
9617
|
}
|
|
9612
9618
|
function useMoveEvent() {
|
|
@@ -9614,7 +9620,9 @@ function useMoveEvent() {
|
|
|
9614
9620
|
const qc = reactQuery.useQueryClient();
|
|
9615
9621
|
return reactQuery.useMutation({
|
|
9616
9622
|
mutationFn: ({ id, calendarId }) => arbi.calendar.moveEvent(id, calendarId),
|
|
9617
|
-
onSuccess: () =>
|
|
9623
|
+
onSuccess: () => {
|
|
9624
|
+
void invalidateCalendarEvents(qc);
|
|
9625
|
+
}
|
|
9618
9626
|
});
|
|
9619
9627
|
}
|
|
9620
9628
|
function useRespondToEvent() {
|
|
@@ -9624,7 +9632,9 @@ function useRespondToEvent() {
|
|
|
9624
9632
|
return reactQuery.useMutation({
|
|
9625
9633
|
mutationFn: (params) => write({ kind: "respond", params }, () => arbi.calendar.respond(params)),
|
|
9626
9634
|
networkMode,
|
|
9627
|
-
onSuccess: () =>
|
|
9635
|
+
onSuccess: () => {
|
|
9636
|
+
void invalidateCalendarEvents(qc);
|
|
9637
|
+
}
|
|
9628
9638
|
});
|
|
9629
9639
|
}
|
|
9630
9640
|
function useImportCalendar() {
|
|
@@ -9632,7 +9642,9 @@ function useImportCalendar() {
|
|
|
9632
9642
|
const qc = reactQuery.useQueryClient();
|
|
9633
9643
|
return reactQuery.useMutation({
|
|
9634
9644
|
mutationFn: ({ ics, calendarId }) => arbi.calendar.importIcs(ics, calendarId),
|
|
9635
|
-
onSuccess: () =>
|
|
9645
|
+
onSuccess: () => {
|
|
9646
|
+
void invalidateCalendarEvents(qc);
|
|
9647
|
+
}
|
|
9636
9648
|
});
|
|
9637
9649
|
}
|
|
9638
9650
|
function useShareCalendar() {
|
|
@@ -9696,7 +9708,9 @@ function useDecideCounter() {
|
|
|
9696
9708
|
accept,
|
|
9697
9709
|
comment
|
|
9698
9710
|
}) => arbi.calendar.decideCounter(id, accept, comment),
|
|
9699
|
-
onSuccess: () =>
|
|
9711
|
+
onSuccess: () => {
|
|
9712
|
+
void invalidateCalendarEvents(qc);
|
|
9713
|
+
}
|
|
9700
9714
|
});
|
|
9701
9715
|
}
|
|
9702
9716
|
function usePublishCalendar() {
|