Appearance
useCountries
Definition
Composable to manage countries
Basic usage
ts
const {
getCountries,
mountedCallback,
fetchCountries
} = useCountries();
Signature
ts
export function useCountries(): UseCountriesReturn
Return type
See UseCountriesReturn
ts
export type UseCountriesReturn = {
mountedCallback(): Promise<void>;
getCountries: ComputedRef<Country[]>;
fetchCountries(): Promise<void>;
};
Properties
Name | Type | Description |
---|---|---|
getCountries | ComputedRef<Array<Country>> |
Methods
Name | Type | Description |
---|---|---|
mountedCallback | Promise<void> | |
fetchCountries | Promise<void> |