selectInsights
Home > @gooddata/sdk-ui-dashboard > selectInsights
selectInsights variable
Selects all insights used on the dashboard.
Signature:
selectInsights: (state: DashboardState) => import("@gooddata/sdk-model").IInsight[]
Remarks
Note: if you are aiming to lookup insights using an ObjRef, then you should instead use the map returned by . If you are aiming to lookup a single insight by its ref, use . 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 or for a faster and safer ways to get an insight by its ObjRef.