useAsyncListing
Sourceimport { useAsyncListing } from "@prestojs/util";
Arguments:
| Argument | Type | Description | |
|---|---|---|---|
| * | props An object with the properties below | ||
| props.accumulatePages | boolean | ||
| * | props.execute | ||
| props.paginator | |null | ||
| props.query | Record | ||
| props.trigger | "MANUAL"|"DEEP" | ||
Returns:
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| * | error | null|Error | |
| * | isLoading | boolean | |
| * | paginator | null| | |
| * | reset | ||
| * | result | null|T | |
| * | run | ||