mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 19:29:54 +02:00
Display notifications for pending client calls and improve data caching
Add an alert component to display pending client calls and adjust query invalidation logic for pending calls. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 95e8aab4-f39f-4b48-aa57-a759ec15ba3d Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/95e8aab4-f39f-4b48-aa57-a759ec15ba3d/IFoerZ5
This commit is contained in:
1 parent
7745a75928
commit
367e09c234
3 files changed
+54
-7
No files matched your search
@@ -33,8 +33,12 @@ export default function ClientCallsModal({ isOpen, onClose, pendingCalls }: Clie
|
||||
description: "L'appel a été enregistré avec succès",
|
||||
});
|
||||
|
||||
// Invalider les caches
|
||||
queryClient.invalidateQueries({ queryKey: ['/api/customer-orders/pending-calls'] });
|
||||
// Invalider les caches avec la bonne stratégie
|
||||
queryClient.invalidateQueries({
|
||||
predicate: (query) => {
|
||||
return query.queryKey[0] === '/api/customer-orders/pending-calls';
|
||||
}
|
||||
});
|
||||
queryClient.invalidateQueries({ queryKey: ['/api/customer-orders'] });
|
||||
},
|
||||
onError: (error, customerOrderId) => {
|
||||
|
||||
Reference in new issue
Block a user