Contentful Personalization & Analytics
    Preparing search index...

    Props for OptimizationProvider when an existing SDK instance is injected.

    interface OptimizationProviderSdkProps {
        children?: ReactNode;
        onStatesReady?: OnStatesReady;
        sdk: ContentfulOptimization;
    }
    Index

    Properties

    children?: ReactNode

    Children components that will have access to the ContentfulOptimization instance.

    onStatesReady?: OnStatesReady

    Called with the injected SDK state surface before provider children mount. Return a cleanup function to unsubscribe app-level state observers on teardown.