feat: preload adjacent media in streams

This commit is contained in:
talksik
2026-03-21 18:24:03 -07:00
parent f6ee5e998a
commit 59ffa7ad6e
3 changed files with 51 additions and 0 deletions
+1
View File
@@ -6,5 +6,6 @@ export function useDownloadUrl(objectId?: string) {
queryKey: ["download-url", objectId],
queryFn: () => apiClient.getParticleDownloadUrl(objectId!),
enabled: !!objectId,
staleTime: 1000 * 60 * 60, // 1 hour — signed URLs valid for 24h
});
}