Dont need previous fetching anymore

This commit is contained in:
Jackson Harper
2024-08-19 16:06:10 +08:00
parent 5f59a1d364
commit 529a81dd8a

View File

@ -675,18 +675,11 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element {
activeCardId ? [...ACTIVE_ACTIONS, ...UNACTIVE_ACTIONS] : UNACTIVE_ACTIONS,
[activeCardId, activeItem]
)
useFetchMore(
() => {
if (!isFetching && !isLoading && hasNextPage) {
fetchNextPage()
}
},
() => {
if (!isFetching && !isLoading && hasPreviousPage) {
fetchPreviousPage()
}
useFetchMore(() => {
if (!isFetching && !isLoading && hasNextPage) {
fetchNextPage()
}
)
})
const setIsChecked = useCallback(
(itemId: string, set: boolean) => {