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.
Client identifier used for authentication or tracking.
OptionaldefaultsOptional set of default values applied on initialization.
OptionalenvironmentContentful 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.
OptionalqueueUnified queue policy for queued stateful work.
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
clientIdis required.