Skip to content

useShopwareContext

useShopwareContext

Types

ts
export function useShopwareContext(): ShopwareContext

source code

ts
export type ShopwareContext = {
  devStorefrontUrl: string | null;
  /**
   * Shopware API client
   */
  apiClient: ApiClient;
  /**
   * Browser locale, working in SSR
   * If not provided, it will be "en-US"
   */
  browserLocale: string;
};

source code