Contentful Personalization & Analytics
    Preparing search index...

    Props for the OptimizationRoot component

    interface OptimizationRootProps {
        children: ReactNode;
        instance: default;
        liveUpdates?: boolean;
        previewPanel?: PreviewPanelConfig;
    }
    Index

    Properties

    children: ReactNode

    Children components that will have access to the Optimization instance

    instance: default

    The Optimization instance to provide to child components

    liveUpdates?: boolean

    Whether Personalization components should react to state changes in real-time. When false (default), components "lock" to the first variant they receive, preventing UI flashing when user actions change their qualification. When true, components update immediately when personalizations change.

    Note: Live updates are always enabled when the preview panel is open, regardless of this setting.

    false
    
    previewPanel?: PreviewPanelConfig

    Optional configuration for the preview panel. When provided with enabled: true, the preview panel will be available.