useInfiniteScroll()
function useInfiniteScroll<T>(EntityType, options): InfiniteScrollResource<InstanceType<T>>;
Defined in: useInfiniteScroll.ts:71
用于游标分页的无限滚动钩子。
Type Parameters
| Type Parameter |
|---|
T extends EntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | 实体类。 |
options | UseOptions<EntityStaticType<T, "findByCursorOptions">> | 带有游标分页的查询选项、响应式引用或 getter。 |
Returns
InfiniteScrollResource<InstanceType<T>>
无限滚动数据与控制状态。