mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove maxPages
This commit is contained in:
parent
b0e7737e18
commit
3435edfb51
1 changed files with 3 additions and 6 deletions
|
|
@ -234,18 +234,15 @@ export function useGetLibraryItems(
|
|||
return response.search
|
||||
},
|
||||
enabled,
|
||||
maxPages: 3,
|
||||
initialPageParam: '0',
|
||||
refetchOnMount: false,
|
||||
refetchOnReconnect: false,
|
||||
refetchOnWindowFocus: false,
|
||||
getNextPageParam: (lastPage: LibraryItems, pages) => {
|
||||
return lastPage.pageInfo.hasNextPage
|
||||
? lastPage?.pageInfo?.endCursor
|
||||
: undefined
|
||||
},
|
||||
getPreviousPageParam: (firstPage: LibraryItems, pages) => {
|
||||
return firstPage.pageInfo.hasPreviousPage
|
||||
? firstPage?.pageInfo?.startCursor
|
||||
: undefined
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue