Change gcTime: infinity -> 30min

This commit is contained in:
porink0424 committed 2024-02-09 17:29:39 +09:00
1 parent 99168e9b12
commit 3880129988
2 files changed
+2 -2

No files matched your search

@@ -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 {