useAsyncValue
Sourceimport { useAsyncValue } from "@prestojs/util";
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | props An object with the properties below | ||
* | props.id | U|null | |
* | props.resolve | ||
... | any | Any properties from CommonProps |
Returns:
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
* | error | null|Error | |
* | isLoading | boolean | |
* | reset | ||
* | run | ||
* | value | T|null |
Arguments:
Argument | Type | Description | |
---|---|---|---|
* | props An object with the properties below | ||
* | props.ids | U[]|null | |
* | props.resolve | ||
... | any | Any properties from CommonProps |
Returns:
An object with these properties: | |||
---|---|---|---|
Property | Type | Description | |
* | error | null|Error | |
* | isLoading | boolean | |
* | reset | ||
* | run | ||
* | value | T|null |