Skip to content
Shopware

useSalutations

useSalutations

Composable for fetching the salutations list.

Types

ts
export function useSalutations(): UseSalutationsReturn

source code

ts
export type UseSalutationsReturn = {
  /**
   * All available salutations
   */
  getSalutations: ComputedRef<Schemas["Salutation"][]>;
  /**
   * Fetches the salutations list and assigns the result to the `salutations` property
   */
  fetchSalutations(): Promise<
    operations["readSalutation post /salutation"]["response"]
  >;
};

source code