mirror of
https://github.com/jordienr/zenblog.git
synced 2026-09-28 01:56:07 -04:00
wip
This commit is contained in:
@@ -19,7 +19,7 @@ export const usePostsQuery = ({
|
||||
enabled: !!blogId,
|
||||
initialPageParam: 0,
|
||||
getNextPageParam: (lastPage: any, pages: any) => {
|
||||
return lastPage.length > 0 ? pages.length * pageSize : undefined;
|
||||
return lastPage?.length > 0 ? pages.length * pageSize : undefined;
|
||||
},
|
||||
queryFn: async ({ pageParam = 0 }) => {
|
||||
const { data, error } = await sb
|
||||
|
||||
Reference in New Issue
Block a user