Change gcTime: infinity -> 30min

This commit is contained in:
porink0424
2024-02-09 17:29:39 +09:00
parent 99168e9b12
commit 3880129988
2 changed files with 2 additions and 2 deletions
@@ -17,7 +17,7 @@ export const useParamImportance = ({
queryKey: ["paramImportance", studyId, numCompletedTrials],
queryFn: () => getParamImportances(studyId),
staleTime: Infinity,
gcTime: Infinity,
gcTime: 30 * 60 * 1000, // 30 minutes
})
useEffect(() => {
+1 -1
View File
@@ -25,7 +25,7 @@ export const usePlot = ({
return getPlotAPI(studyId, plotType)
},
staleTime: Infinity,
gcTime: Infinity,
gcTime: 30 * 60 * 1000, // 30 minutes
})
return {