Appearance
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 ​
Name | Type | Description |
---|---|---|
getSalutations | ComputedRef<Array<>> | All available salutations |
Methods ​
Name | Type | Description |
---|---|---|
fetchSalutations | Promise<void> | Fetches the salutations list and assigns the result to the `salutations` property |