feat(sse): scope timeline events to affected audiences
This commit is contained in:
@@ -27,6 +27,9 @@ export function useTimelineSSE() {
|
||||
case SSE_EVENT_TYPES.ALLOCATION_CREATED:
|
||||
case SSE_EVENT_TYPES.ALLOCATION_UPDATED:
|
||||
case SSE_EVENT_TYPES.ALLOCATION_DELETED:
|
||||
case SSE_EVENT_TYPES.VACATION_CREATED:
|
||||
case SSE_EVENT_TYPES.VACATION_UPDATED:
|
||||
case SSE_EVENT_TYPES.VACATION_DELETED:
|
||||
void queryClient.invalidateQueries({ queryKey: [["timeline", "getEntries"]] });
|
||||
void queryClient.invalidateQueries({ queryKey: [["timeline", "getEntriesView"]] });
|
||||
void queryClient.invalidateQueries({ queryKey: [["timeline", "getMyEntriesView"]] });
|
||||
|
||||
Reference in New Issue
Block a user