Home > @shopware-pwa/composables > useNotifications

# useNotifications variable

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature:

useNotifications: (rootContext: ApplicationVueContext) => {
    notifications: ComputedRef<Notification[]>;
    removeOne: (id: number) => void;
    removeAll: () => void;
    pushInfo: (message: string, options?: any) => void;
    pushWarning: (message: string, options?: any) => void;
    pushError: (message: string, options?: any) => void;
    pushSuccess: (message: string, options?: any) => void;
}