refactoring: first render improvements

This commit is contained in:
ner committed 2024-10-21 18:57:49 +03:00
1 parent 38aebcbe28
commit 0cface89bf
13 files changed
+38 -33

No files matched your search

+2 -2
View File
@@ -5,10 +5,10 @@ import getQueryClient from '@/lib/queryClient';
import Container from './container';
const Random = async () => {
const Random = () => {
const queryClient = getQueryClient();
await queryClient.prefetchInfiniteQuery({
queryClient.prefetchInfiniteQuery({
queryKey: ['random-movie'],
queryFn: randomMovies,
initialPageParam: '1'