feat: static generation
This commit is contained in:
1 parent
25866b9eb9
commit
e5c44fe359
7 files changed
+10
-10
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user