feat: static generation
This commit is contained in:
1 parent
25866b9eb9
commit
e5c44fe359
7 files changed
+10
-10
No files matched your search
@@ -12,10 +12,10 @@ export const metadata: Metadata = {
|
||||
description: `Check out the most popular movies right now on ${TITLE}. See what’s trending and don’t miss out on the latest hits.`
|
||||
};
|
||||
|
||||
const Popular = () => {
|
||||
const Popular = async () => {
|
||||
const queryClient = getQueryClient();
|
||||
|
||||
queryClient.prefetchInfiniteQuery(popularQuery());
|
||||
await queryClient.prefetchInfiniteQuery(popularQuery());
|
||||
|
||||
return (
|
||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||
|
||||
Reference in new issue
Block a user