Home > @shopware-pwa/composables > IUseSessionContext
# IUseSessionContext interface
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.
interface for useSessionContext composable
Signature:
export interface IUseSessionContext
# Remarks
SessionContext contain all related data like user, currency, country, shippingMethod, paymentMethod etc.
# Properties
Property | Type | Description |
---|---|---|
currency | Readonly<Ref<Currency | null>> | (BETA) |
paymentMethod | Readonly<Ref<PaymentMethod | null>> | (BETA) |
refreshSessionContext | () => Promise<void> | (BETA) |
sessionContext | Readonly<Ref<SessionContext | null>> | (BETA) |
setCurrency | (currency: Partial<Currency>) => Promise<void> | (BETA) |
setPaymentMethod | (paymentMethod: Partial<PaymentMethod>) => Promise<void> | (BETA) |
setShippingMethod | (shippingMethod: Partial<ShippingMethod>) => Promise<void> | (BETA) |
shippingMethod | Readonly<Ref<ShippingMethod | null>> | (BETA) |