useAsyncChoices

Source
import { useAsyncChoices } from "@prestojs/viewmodel";
useAsyncChoices<ItemT,ValueT>(props)
Source

Arguments:

ArgumentTypeDescription
*
props
An object with the properties below
props.accumulatePagesboolean
*props.asyncChoicesAsyncChoicesInterface
props.listOptionsRecord
props.onRetrieveError
props.onRetrieveSuccess
props.queryRecord
props.retrieveOptionsRecord
props.trigger"MANUAL"|"DEEP"
props.valueValueT[]|ValueT|null
Returns:
An object with these properties:
PropertyTypeDescription
*choicesReturnType
*list
*selected