ZenInfiniteQuery<T> constructor
ZenInfiniteQuery<T> ({})
Implementation
ZenInfiniteQuery({
required super.queryKey,
required this.infiniteFetcher,
required this.getNextPageParam,
this.initialPageParam,
super.config,
super.initialData,
super.scope,
super.autoDispose,
}) : _nextPageParam = initialPageParam,
super(
fetcher: () async {
final firstPage = await infiniteFetcher(initialPageParam);
return [firstPage];
},
);