refactoring: first render improvements
This commit is contained in:
1 parent
38aebcbe28
commit
0cface89bf
13 files changed
+38
-33
No files matched your search
@@ -12,10 +12,10 @@ export const metadata: Metadata = {
|
||||
'Discover the top-rated movies on Movie Advisor. Find the highest-rated films and make informed viewing choices.'
|
||||
};
|
||||
|
||||
const Top = async () => {
|
||||
const Top = () => {
|
||||
const queryClient = getQueryClient();
|
||||
|
||||
await queryClient.prefetchInfiniteQuery({
|
||||
queryClient.prefetchInfiniteQuery({
|
||||
queryKey: ['top'],
|
||||
queryFn: () => topMovies(),
|
||||
initialPageParam: '1'
|
||||
|
||||
Reference in new issue
Block a user