refactoring: first render improvements
This commit is contained in:
1 parent
38aebcbe28
commit
0cface89bf
13 files changed
+38
-33
No files matched your search
@@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { usersShows } from '@/api';
|
||||
|
||||
import useInfiniteList from './useInfiniteList';
|
||||
@@ -17,8 +19,7 @@ const useUsersShows = ({ showType, list = 'favorite' }: { showType: Show['type']
|
||||
|
||||
const query = useInfiniteList({
|
||||
queryKey: KEY({ list, showType }),
|
||||
queryFn: ({ page }) => usersShows({ showType, list, page }),
|
||||
enabled: Boolean(session)
|
||||
queryFn: ({ page }) => usersShows({ showType, list, page })
|
||||
});
|
||||
|
||||
return session
|
||||
|
||||
Reference in new issue
Block a user