fix: proper prefetch

This commit is contained in:
ner committed 2024-10-29 19:39:41 +02:00
1 parent c9ca262da8
commit 3b954279f7
9 files changed
+12 -15

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ export type PopularQueryProps = {
};
const popularQuery = ({ sortBy = 'popularity.desc', starring }: PopularQueryProps = {}) => ({
suspense: true,
queryKey: ['popular', sortBy, starring],
initialPageParam: '1',
queryFn: ({ pageParam = '1' }: { pageParam?: string }) =>