s-private API Documentation - v3.8.1
    Preparing search index...

    Type Alias UseInfiniteScrollOptions

    Options for the useInfiniteScroll hook.

    useInfiniteScroll for the hook

    type UseInfiniteScrollOptions = {
        fetchNextPage: () => Promise<void>;
        hasNextPage: boolean;
        isFetchingNextPage: boolean;
        rootMargin?: string;
        threshold?: number;
    }
    Index

    Properties

    fetchNextPage: () => Promise<void>

    Function to fetch the next page

    hasNextPage: boolean

    Whether there are more pages to load

    isFetchingNextPage: boolean

    Whether a page is currently being fetched

    rootMargin?: string

    Margin around the root for intersection detection

    threshold?: number

    Visibility threshold for triggering intersection