useAsyncListing

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

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
*isLoadingboolean
*paginatornull|
*reset
*resultnull
*run
|
An object with these properties:
PropertyTypeDescription
*errorError
*isLoadingboolean
*paginatornull|
*reset
*resultnull
*run
|
An object with these properties:
PropertyTypeDescription
*errornull
*isLoadingboolean
*paginatornull|
*reset
*resultT
*run