Skip to content
On this page

useSalutations ​

Definition ​

Composable for fetching the salutations list.

Basic usage ​

ts
const {  getSalutations, fetchSalutations } = useSalutations();

Signature ​

ts
export function useSalutations(): UseSalutationsReturn 

Return type ​

See UseSalutationsReturn
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<void>;
};

Properties ​

NameTypeDescription
getSalutations
ComputedRef<Array<>>
All available salutations

Methods ​

NameTypeDescription
fetchSalutations
Promise<void>
Fetches the salutations list and assigns the result to the `salutations` property
useSalutations has loaded