OptionalallowedAllow-listed event type strings permitted when consent is not set.
OptionalapiUnified API configuration for stateful environments.
Children components that will have access to the ContentfulOptimization instance.
OptionalcontentfulOptional SDK-managed Contentful Delivery API entry fetching.
OptionaldefaultsOptional set of default values applied on initialization.
OptionalenvironmentContentful space environment identifier.
OptionaleventEvent builder configuration (channel/library metadata, etc.).
OptionalfetchOptions used to configure the underlying protected fetch method.
OptionalgetFunction used to obtain an anonymous user identifier.
OptionalliveWhether OptimizedEntry components react to state changes in real time.
OptionallocaleDefault SDK locale used for Experience API requests and event context.
OptionallogMinimum log level for the default console sink.
OptionalonCallback invoked whenever an event call is blocked by checks.
OptionalonCalled once SDK state initialization completes and before provider children mount. Return a cleanup function to unsubscribe app-level state observers on teardown.
OptionalprefetchManaged entries to prefetch after the SDK is ready.
OptionalqueueUnified queue policy for queued stateful work.
Contentful Space identifier used for authentication or tracking.
OptionaltrackControls which entry interactions are tracked automatically for all
OptimizedEntry components. Individual
components can override each interaction type with their trackViews
and trackTaps props.
Props for the OptimizationRoot component.
Accepts all CoreStatefulConfig properties directly. Only
spaceIdis required.