feat: notify clients to refetch custom fields

This commit is contained in:
Carlos Valente
2025-06-27 16:40:23 +02:00
committed by Carlos Valente
parent 473f50b493
commit 9473880d2c
3 changed files with 10 additions and 4 deletions
+3
View File
@@ -152,6 +152,9 @@ export const connectSocket = () => {
case RefetchKey.All:
invalidateAllCaches();
break;
case RefetchKey.CustomFields:
ontimeQueryClient.invalidateQueries({ queryKey: CUSTOM_FIELDS });
break;
case RefetchKey.Rundown:
if (revision === (ontimeQueryClient.getQueryData(RUNDOWN) as Rundown).revision) break;
ontimeQueryClient.invalidateQueries({ queryKey: RUNDOWN });