• Tells you the status of SDK initialization.

    The status transitions to initializing when the SDK is initialized. Once the initialization is complete (the promise is fulfilled), the status transitions to success. If there's an error initializing, it transitions to error.

    Use this method to avoid calling SDK methods before it is initialized.

    const initializationPromise = Personalize.init(projectUid);

    Personalize.getInitializationStatus(); // `initializing`

    await initializationPromise;

    Personalize.getInitializationStatus(); // `success`

    Returns InitializationStatus | undefined