Skip to main content

Interface: PropellerDeps

Defined in: context/PropellerContext.tsx:24

Tier 1 — application-wide infrastructure. Bound by <PropellerDepsProvider> once at the root of the app. These values are app-singletons: the GraphQL client, the SDK Services bundle wired to it, and the cosmetic / branding defaults (currency, configuration). They do not change per subtree — for per-scope state (user, companyId, language) use <PropellerProvider>.

Why split: per-scope state belongs to a routed section (impersonation, multi-cart, language widgets); deps don't. Splitting lets a deeper <PropellerProvider> replace the scope without recreating the GraphQL client or invalidating service references.

Extended by

Properties

configuration

configuration: unknown

Defined in: context/PropellerContext.tsx:38

Free-form configuration bag forwarded to components.


currency

currency: string

Defined in: context/PropellerContext.tsx:36

Currency symbol used by display components. Default: '€'.


graphqlClient

graphqlClient: GraphQLClient

Defined in: context/PropellerContext.tsx:29

The GraphQL client the consumer constructed. Exposed for code that needs to pass it back into SDK helpers (rare — most code should use services).


services

services: Services

Defined in: context/PropellerContext.tsx:34

The Services bundle ({ product, cart, user, ... }) wired to graphqlClient. Build it via createServices(graphqlClient).