I am trying to get the current state of an out of the box widget (filter) but not finding a way to get it. I can easily set the state of that widget with: getAppStore().dispatch(appActions.widgetConfigUpgraded("widget_65", config)). But how can I get the current state from "widget_65" (which is inside a sidebar and navigation section if that matters)?
I feel like I am missing something simple, any advice is greatly appreciated!
If I am remembering my React quirks correctly, state is an internal property to each component and not accessible outside of the component.
I was afraid of that, thanks for that information @JeffreyThompson2. Seems backwards that they let you set another components state but won't let you read it.
I am new to React, probably should take a step back and learn it better first. Thanks again!
@RyanCoodey I'm stuck with this as well. I'm using DataSourceComponent to listen for data source selection changes but only want to do this if my OOTB Search widget is active/open. Were you able to find a way to get the state of other widgets from your custom widget?