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:
parent
ebc25e45d3
commit
c331ada086
10 changed files with 4 additions and 14 deletions
|
@ -88,6 +88,7 @@ export function createQueryClient() {
|
|||
defaultOptions: {
|
||||
queries: {
|
||||
networkMode: 'offlineFirst',
|
||||
staleTime: 1000, // 1s stale time by default
|
||||
},
|
||||
},
|
||||
mutationCache: new MutationCache({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue