@gravity-ui/data-source
Version:
A wrapper around data fetching
4 lines (3 loc) • 377 B
TypeScript
import React from 'react';
import type { DataInfiniteLoaderProps } from './types';
export declare const DataInfiniteLoader: <TError>({ status, error, errorAction: errorActionProp, hasNextPage, fetchNextPage, isFetchingNextPage, LoadingView, ErrorView, MoreView, loadingViewProps, errorViewProps, moreViewProps, children, }: DataInfiniteLoaderProps<TError>) => React.ReactNode;