Skip to content
Shopware

useCountries

useCountries

Composable to manage countries

Types

ts
export function useCountries(): UseCountriesReturn

source code

ts
export type UseCountriesReturn = {
  mountedCallback(): Promise<void>;
  getCountries: ComputedRef<Schemas["Country"][]>;
  fetchCountries(): Promise<
    operations["readCountry post /country"]["response"]
  >;
  getStatesForCountry(countryId: string): Schemas["CountryState"][] | null;
};

source code