Commit 6ad5dbb6 by CaIon

fix(main): prevent refetching on window focus to optimize performance

parent f7dae5cb
......@@ -63,7 +63,8 @@ const queryClient = new QueryClient({
[401, 403].includes(error.response?.status ?? 0)
)
},
refetchOnWindowFocus: import.meta.env.PROD,
// Keep focused tabs from silently re-running heavy pages like logs.
refetchOnWindowFocus: false,
staleTime: 10 * 1000, // 10s
},
mutations: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment