useAsyncValue
Sourceimport { useAsyncValue } from "@prestojs/util";
Params:
Parameter | 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 |
Params:
Parameter | 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 |