This commit is contained in:
Boris Rorsvort 2026-01-12 14:38:42 +01:00
parent 1f3567ffdc
commit 45b651e994
2 changed files with 2 additions and 7 deletions

View File

@ -1,5 +1 @@
import React from 'react'
export const InfinitePagination = () => {
return null
}
export const InfinitePagination = () => null

View File

@ -12,8 +12,6 @@ import { useHistory, useLocation } from 'react-router-dom'
const InfiniteScrollContext = createContext(null)
const APP_BAR_HEIGHT = 64
const getStorageKey = (pathname, filterValues) => {
const filterKey = JSON.stringify(filterValues || {})
return `infiniteScroll:${pathname}:${filterKey}`
@ -308,6 +306,7 @@ export const InfiniteScrollProvider = ({ children }) => {
)
}
// eslint-disable-next-line react-refresh/only-export-components
export const useInfiniteScroll = () => {
const context = useContext(InfiniteScrollContext)
if (!context) {