useAsyncListing
Sourceimport { useAsyncListing } from "@prestojs/util";
Params:
| Parameter | 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 | |
| * | isLoading | boolean | |
| * | paginator | null| | |
| * | reset | ||
| * | result | null | |
| * | run | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| * | error | Error | |
| * | isLoading | boolean | |
| * | paginator | null| | |
| * | reset | ||
| * | result | null | |
| * | run | ||
| An object with these properties: | |||
|---|---|---|---|
| Property | Type | Description | |
| * | error | null | |
| * | isLoading | boolean | |
| * | paginator | null| | |
| * | reset | ||
| * | result | T | |
| * | run | ||