fix: complete Velocity-OS feature migration wiring
Some checks failed
Velocity-OS Deployment Pipeline / lint (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / notify-ingress (push) Has been cancelled
Some checks failed
Velocity-OS Deployment Pipeline / lint (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / notify-ingress (push) Has been cancelled
This commit is contained in:
@@ -13,7 +13,8 @@ export function useClient360(personId: string) {
|
||||
const payload = await api.get<unknown>(`/crm/client-360/${personId}`);
|
||||
return mapClient360(normalizeSnapshot(payload));
|
||||
},
|
||||
staleTime: 30_000,
|
||||
staleTime: 0,
|
||||
refetchOnMount: 'always',
|
||||
enabled: !!personId,
|
||||
});
|
||||
return { client: query.data, isLoading: query.isLoading, error: query.error };
|
||||
@@ -30,7 +31,8 @@ export function useConversations(personId: string) {
|
||||
const payload = await api.get<unknown>(`/crm/client-360/${personId}`);
|
||||
return mapConversationEvents(normalizeSnapshot(payload));
|
||||
},
|
||||
staleTime: 10_000,
|
||||
staleTime: 0,
|
||||
refetchOnMount: 'always',
|
||||
enabled: !!personId,
|
||||
});
|
||||
|
||||
@@ -51,7 +53,8 @@ export function useClientProperties(personId: string) {
|
||||
const payload = await api.get<unknown>(`/crm/client-360/${personId}`);
|
||||
return mapPropertyInterests(normalizeSnapshot(payload));
|
||||
},
|
||||
staleTime: 60_000,
|
||||
staleTime: 0,
|
||||
refetchOnMount: 'always',
|
||||
enabled: !!personId,
|
||||
});
|
||||
return { properties: query.data ?? [], isLoading: query.isLoading };
|
||||
@@ -68,7 +71,8 @@ export function useClientTasks(personId: string) {
|
||||
const payload = await api.get<unknown>(`/crm/client-360/${personId}`);
|
||||
return mapTasks(normalizeSnapshot(payload));
|
||||
},
|
||||
staleTime: 30_000,
|
||||
staleTime: 0,
|
||||
refetchOnMount: 'always',
|
||||
enabled: !!personId,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user