mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-08 03:07:51 +00:00
perf(web): reduce react-query stale time to 30s
This commit is contained in:
parent
310ae73fae
commit
8fd9e364fd
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import { router } from './router'
|
|||
const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
staleTime: 5 * 60 * 1000,
|
||||
staleTime: 30 * 1000,
|
||||
retry: (failureCount, error) => {
|
||||
// Don't retry on 401/403/404
|
||||
if (error instanceof Error && /HTTP (401|403|404)/.test(error.message)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue