feat: static generation

This commit is contained in:
ner committed 2024-11-04 12:47:15 +02:00
1 parent 25866b9eb9
commit e5c44fe359
7 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ interface Props {
const useRandomMovie = ({ page }: Props) => {
const [index, setIndex] = useAtom(indexAtom);
const { shows: movies, fetchNextPage } = useInfiniteList(randomQuery({ page }));
const { shows: movies, fetchNextPage } = useInfiniteList({ ...randomQuery({ page }), mode: 'default' });
if (movies.length && !movies[index]) {
setIndex(0);