fix: back to prefetch

This commit is contained in:
ner committed 2024-10-29 18:25:52 +02:00
1 parent a268f7c38d
commit c9ca262da8
14 files changed
+180 -27

No files matched your search

+8 -2
View File
@@ -1,12 +1,18 @@
'use client';
import { FC } from 'react';
import Preview from '../Preview';
import Carousel from './components/Carousel';
import useRandomMovie from './useRandomMovie';
const Random = () => {
const { movie, movies, onIndexChange, fetchNextPage } = useRandomMovie();
interface Props {
page: number;
}
const Random: FC<Props> = ({ page }) => {
const { movie, movies, onIndexChange, fetchNextPage } = useRandomMovie({ page });
return (
<Preview