Home > @gooddata/sdk-ui-dashboard > selectInsights
Selects all insights used on the dashboard.
selectInsights: (state: DashboardState) => import("@gooddata/sdk-model").IInsight
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.