useCountries
Category:
Context & Language
Composable to manage countries
Types
ts
export function useCountries(): UseCountriesReturn
ts
export type UseCountriesReturn = {
mountedCallback(): Promise<void>;
getCountries: ComputedRef<Schemas["Country"][]>;
fetchCountries(): Promise<
operations["readCountry post /country"]["response"]
>;
getStatesForCountry(countryId: string): Schemas["CountryState"][] | null;
};