跳到主要内容

useInfiniteScroll()

function useInfiniteScroll<T>(EntityType, options): InfiniteScrollResource<InstanceType<T>>;

Defined in: useInfiniteScroll.ts:71

用于游标分页的无限滚动钩子。

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterTypeDescription
EntityTypeT实体类。
optionsUseOptions<EntityStaticType<T, "findByCursorOptions">>带有游标分页的查询选项、响应式引用或 getter。

Returns

InfiniteScrollResource<InstanceType<T>>

无限滚动数据与控制状态。