Appearance
useShopwareContext ​
Definition ​
Basic usage ​
ts
const { apiInstance, devStorefrontUrl } = useShopwareContext();
Signature ​
ts
export function useShopwareContext(): ShopwareContext
Return type ​
See ShopwareContext
ts
export type ShopwareContext = {
/**
* Shopware API instance
*/
apiInstance: ShopwareApiInstance;
devStorefrontUrl: string | null;
};
Properties ​
Name | Type | Description |
---|---|---|
apiInstance | ShopwareApiInstance | Shopware API instance |
devStorefrontUrl | string | |