fix: torrent size

This commit is contained in:
ner committed 2024-03-19 20:15:42 +02:00
1 parent 8d7e2df869
commit c6d306cb7b
22 files changed
+1638 -300

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import { dehydrate, HydrationBoundary } from '@tanstack/react-query';
import { popularMovies } from '@/lib/api';
import getQueryClient from '@/lib/queryClient';
import Container from './container';
export default async function Popular() {
const queryClient = getQueryClient();
await queryClient.prefetchInfiniteQuery({
queryKey: ['popular'],
queryFn: () => popularMovies({}),
initialPageParam: '1'
});
return (
<HydrationBoundary state={dehydrate(queryClient)}>
<Container />
</HydrationBoundary>
);
}
export const revalidate = 3600;