1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

feat(app): 1s staleTime to avoid sending repeated requests (#607)

This commit is contained in:
LP B 2025-04-13 23:05:48 +02:00 committed by GitHub
parent ebc25e45d3
commit c331ada086
10 changed files with 4 additions and 14 deletions

View file

@ -88,6 +88,7 @@ export function createQueryClient() {
defaultOptions: {
queries: {
networkMode: 'offlineFirst',
staleTime: 1000, // 1s stale time by default
},
},
mutationCache: new MutationCache({