Skip to content

Variable: AdaptContext

const AdaptContext: Context<{ adapt: any; watch: any; }>

Defined in: lib/adapt.context.ts:13

Supplies a custom StateAdapt configuration to StateAdapt's React hooks.

The context already contains defaultStateAdapt, so applications only need to render a provider when they want to customize the configuration. Create that configuration with createStateAdapt and provide the same instance you import adapt and watch from.