OptionalallowedAllow-listed event type strings permitted when consent is not set.
OptionalapiUnified API configuration for stateful environments.
OptionalchildrenChildren 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.
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.
Optionalsdk
Props for the OptimizationProvider component.
Accepts all
OptimizationConfigproperties directly. OnlyclientIdis required.