Home > widget-integration > PredictiveBundleStateService > getBundleDataWithPopupState

PredictiveBundleStateService.getBundleDataWithPopupState() method

Returns cached bundle state while forcing popup-open state.

Signature:

getBundleDataWithPopupState(widgetId: string, isPopupOpening: boolean): PredictiveBundleData | undefined;

Parameters

Parameter

Type

Description

widgetId

string

Widget id to resolve.

isPopupOpening

boolean

Whether the popup should be marked as open.

Returns:

PredictiveBundleData | undefined

Updated bundle state, or undefined when no cache entry exists.