selectInsights
Home > @gooddata/sdk-ui-dashboard > selectInsights
selectInsights variable
Selects all insights used on the dashboard.
Signature:
selectInsights: (state: DashboardState) => IInsight[]
Remarks
Note: if you are aiming to lookup insights using an ObjRef, then you should instead use the map returned by selectInsightsMap. If you are aiming to lookup a single insight by its ref, use selectInsightByRef. Using these selectors is both faster and safer as they take ObjRef type into account and look up the insight depending on the type of the ref.
See selectInsightsMap or selectInsightByRef for a faster and safer ways to get an insight by its ObjRef.