Select to view content in your preferred language

Widget development check if settings window is active

284
0
07-06-2023 12:13 AM
Labels (1)
Robert_van_Gilst
Occasional Contributor

Hi,

I am developing a widget, when designing the experience, I want to show some Extra information if the settings window is open.

Right now I am using this...

const isInBuilder = ReactRedux.useSelector((state: IMState) => state.appContext.isInBuilder)
const appMode = ReactRedux.useSelector((state: IMState) => state.appRuntimeInfo.appMode)

...to figure out if I am designing the experience (and maybe have started Live-viewing).

I have an Alert, that I want to show when designing the widget (and the settings page for the widget is active), but I do not want to show it when I am designing other widgets (when the settings page for the widget is not active).

0 Kudos
0 Replies