useAsyncListing

Source
import { useAsyncListing } from "@prestojs/util";
useAsyncListing<ResultT>(props)
Source

Arguments:

ArgumentTypeDescription
*
props
An object with the properties below
props.accumulatePagesboolean
*props.execute
props.paginator|null
props.queryRecord
props.trigger"MANUAL"|"DEEP"
Returns:
An object with these properties:
PropertyTypeDescription
*errornull|Error
*isLoadingboolean
*paginatornull|
*reset
*resultnull|T
*run

Examples

Infinite scroll list