useConfigStore

useConfigStore: UseBoundStore<StoreApi<ConfigState & ConfigActions>>

Source: config.state.ts:342

The config store — the SDK's resolved ConfigState (API credentials, page type, payment/address setup, detected location and currency). Mostly read-only at runtime; set from the loader script at init.

Type

UseBoundStore<StoreApi<ConfigState & ConfigActions>>

Default: configStore

Example

CODE
const currency = useConfigStore.getState().getCurrency();