Skip to main content

Function: useServices()

useServices(): Services

Defined in: composables/react/useServices.ts:19

Read the SDK services bundle from <PropellerDepsProvider>.

The package ships no default graphqlClient / services. The consumer constructs both at app startup and passes them through <PropellerDepsProvider value={{ graphqlClient, services, ... }}>. Per-scope state (user, companyId, language) goes through <PropellerProvider> separately.

Throws when used outside the deps provider — that's an integration error the consumer fixes at the root layout, not something to paper over with a singleton.

Returns

Services