@contentstack/live-preview-utils
Version:
Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.
12 lines (10 loc) • 403 B
TypeScript
interface IUseInfiniteScrollOptions {
containerId: string;
isFetching: boolean;
canFetchMore: boolean;
loadMore: (offset: number, limit: number) => Promise<any>;
offset: number;
limit: number;
}
declare const useInfiniteScroll: ({ containerId, isFetching, canFetchMore, loadMore, offset, limit, }: IUseInfiniteScrollOptions) => boolean;
export { useInfiniteScroll as default };