API Reference > ui-framework > Hooks > useActiveIModelConnection useActiveIModelConnection Function React hook that maintains the active IModelConnection. For this hook to work properly the IModelConnection must be set using UiFramework.setIModelConnection method. This also requires that the host app includes the UiFramework reducer into its Redux store. useActiveIModelConnection(): IModelConnection | undefined Returns - IModelConnection | undefined Defined in ui/framework/src/ui-framework/hooks/useActiveIModelConnection.tsx Line 20 Last Updated: 11 June, 2024