Skip to content

ConfigContext

const ConfigContext: Context<ConfigManager<unknown> | null>

Defined in: packages/react/src/context.ts:11

The Context holds the Manager instance. We must use unknown here because React Context cannot preserve the Generic type of the Manager created by the user.

The useConfig hook will cast this back to the user’s specific Generic type.