useAsyncValue

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

Arguments:

ArgumentTypeDescription
*
props
An object with the properties below
*props.idU|null
*props.resolve
...any
Any properties from CommonProps
Returns:
An object with these properties:
PropertyTypeDescription
*errornull|Error
*isLoadingboolean
*reset
*run
*valueT|null
useAsyncValue<T,U>(props)

Arguments:

ArgumentTypeDescription
*
props
An object with the properties below
*props.idsU[]|null
*props.resolve
...any
Any properties from CommonProps
Returns:
An object with these properties:
PropertyTypeDescription
*errornull|Error
*isLoadingboolean
*reset
*run
*valueT|null