refactoring: improvements for lighthouse

This commit is contained in:
ner committed 2024-10-21 15:35:08 +03:00
1 parent f2f242a684
commit 38aebcbe28
27 files changed
+132 -93

No files matched your search

+1 -1
View File
@@ -3,6 +3,6 @@
import { topMovies } from '@/api';
import useInfiniteList from '@/hooks/useInfiniteList';
const useTop = () => useInfiniteList({ queryKey: ['top'], queryFn: topMovies });
const useTop = () => useInfiniteList({ suspense: true, queryKey: ['top'], queryFn: topMovies });
export default useTop;