vtils

Home > react > useScrollLoadMore

useScrollLoadMore() function

滚动数据加载。

Signature:

export declare function useScrollLoadMore<TItem>(service: UseLoadMoreService<TItem>, deps: DependencyList, options?: UseScrollLoadMoreOptions): UseLoadMoreResult<TItem>;

Parameters

Parameter Type Description
service UseLoadMoreService<TItem> 数据加载服务
deps DependencyList 依赖,依赖若发生变化则从首页重新加载数据
options UseScrollLoadMoreOptions (Optional) 滚动选项

Returns:

UseLoadMoreResult<TItem>

返回结果