Skip to content

Commit cd971e3

Browse files
committed
Refetch data when stale.
1 parent 0f0f391 commit cd971e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/modal/ViewAlbumDetails.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const ViewAlbumDetails: React.FC<DisplayProps> = ({ album, open, onClose }) => {
4343
const { data, isSuccess } = useQuery<IRelease>({
4444
queryKey: ["release", album.id],
4545
queryFn: () => getReleaseInfo(token ?? "", album.id),
46-
staleTime: Infinity,
46+
staleTime: 1000 * 60 * 60 * 24 * 30, // 1 month
47+
refetchOnMount: "always",
48+
refetchOnWindowFocus: false,
4749
})
4850

4951
return (

0 commit comments

Comments
 (0)