@nosto/preact

    Interface InfiniteScrollProps

    Infinite scroll component props

    The children to render

    The component to render when more results are available

    The page size to use when loading more results

    interface InfiniteScrollProps {
        children: ComponentChildren;
        loadMoreComponent?: ComponentType<{ pageSize?: number }>;
        observerOptions?: IntersectionObserverInit;
        pageSize?: number;
    }
    Index

    Properties

    children: ComponentChildren
    loadMoreComponent?: ComponentType<{ pageSize?: number }>
    observerOptions?: IntersectionObserverInit

    Options for the IntersectionObserver. This can be used to adjust the root margin, threshold, etc. For example, to trigger the observer when the user scrolls to the bottom of the page, you can set rootMargin: "100% 0".

    { rootMargin: "0px", threshold: 0 }
    
    pageSize?: number
    MMNEPVFCICPMFPCPTTAAATR