mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
feat: notify clients to refetch custom fields
This commit is contained in:
committed by
Carlos Valente
parent
473f50b493
commit
9473880d2c
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user