✨ Add cache and stale timers for most react query

This commit is contained in:
ajnart committed 2023-01-31 11:45:52 +09:00
1 parent e9eebadce6
commit 6586cdd060
8 files changed
+45 -31

No files matched your search

+1
View File
@@ -53,6 +53,7 @@ function CalendarTile({ widget }: CalendarTileProps) {
const { data: medias } = useQuery({
queryKey: ['calendar/medias', { month: month.getMonth(), year: month.getFullYear() }],
staleTime: 1000 * 60 * 60 * 5,
queryFn: async () =>
(await (
await fetch(