Home > @shopware-pwa/composables > getApplicationContext

# getApplicationContext() function

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:

export declare function getApplicationContext(rootContext: ApplicationVueContext, key?: string): {
    apiInstance: ShopwareApiInstance | undefined;
    vuexStore: any;
    router: any;
    route: any;
    i18n: any;
    cookies: any;
    shopwareDefaults: any;
    interceptors: any;
    routing: Routing;
    contextName: string;
};

# Parameters

Parameter Type Description
rootContext ApplicationVueContext
key string

Returns:

{ apiInstance: ShopwareApiInstance | undefined; vuexStore: any; router: any; route: any; i18n: any; cookies: any; shopwareDefaults: any; interceptors: any; routing: Routing; contextName: string; }