Don't cache trending GIFs (#10612)

This commit is contained in:
Spence Pope
2026-05-26 11:55:42 -04:00
committed by GitHub
parent a5a6293467
commit 3f4cd1c683
+4
View File
@@ -19,6 +19,10 @@ export function useFeaturedGifsQuery(options?: {enabled?: boolean}) {
initialPageParam: undefined as string | undefined,
getNextPageParam: lastPage => lastPage.next,
enabled: options?.enabled,
// Klipy serves time-of-day-sensitive trending; drop cache as soon as the
// picker closes so every reopen issues a fresh request instead of showing
// stale results while a background refetch runs.
gcTime: 0,
})
}