fix: proper prefetch
This commit is contained in:
1 parent
c9ca262da8
commit
3b954279f7
9 files changed
+12
-15
No files matched your search
@@ -10,7 +10,6 @@ export type UsersShowsQueryProps = {
|
||||
export const KEY = ({ list, showType, session }: UsersShowsQueryProps) => [`users-${list}`, showType, session];
|
||||
|
||||
const usersShowsQuery = ({ showType, list, session }: UsersShowsQueryProps) => ({
|
||||
suspense: true,
|
||||
queryKey: KEY({ list, showType, session }),
|
||||
initialPageParam: '1',
|
||||
queryFn: ({ pageParam = '1' }: { pageParam?: string }) =>
|
||||
|
||||
Reference in new issue
Block a user