mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 03:09:32 +02:00
Fix issue where multiple page reloads are needed to see selected store's tasks
Update React Query cache invalidation to include `/api/tasks` and ensure automatic cache invalidation when the selected store changes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
1 parent
15cf7f32a1
commit
9d9344f52e
3 files changed
+4
-3
No files matched your search
@@ -116,7 +116,8 @@ export default function Layout({ children }: LayoutProps) {
|
||||
const key = query.queryKey;
|
||||
return Boolean(key[0]?.toString().includes('/api/orders') ||
|
||||
key[0]?.toString().includes('/api/deliveries') ||
|
||||
key[0]?.toString().includes('/api/stats/monthly'));
|
||||
key[0]?.toString().includes('/api/stats/monthly') ||
|
||||
key[0]?.toString().includes('/api/tasks'));
|
||||
}});
|
||||
|
||||
// Sauvegarder dans localStorage et mettre à jour l'état
|
||||
|
||||
Reference in new issue
Block a user