MDK Logo

Apps

Hooks for discovering and loading installed app panels and UIs

Hooks for reading the installed apps a Gateway exposes and loading their panels and UIs.

Package

@tetherto/mdk-react-adapter

Hooks

@tetherto/mdk-react-adapter

Import the public APIs on this page from @tetherto/mdk-react-adapter.

useInstalledAppPanels

The installed apps' panels for one shell slot, ready to render: the shell wraps each in the app's MdkAppProvider and an error boundary.

(slot: MdkAppPanelSlot, options?: UseInstalledAppUisOptions) => UseInstalledAppPanelsResult

useInstalledAppUis

The installed apps' UIs, ready for a dashboard to mount: reads the app list the dashboard serves from its own origin (/app-ui.json, written from the stack's mdk.yaml by mdk run dashboard), imports each app's ui/index.js, checks it…

(options: UseInstalledAppUisOptions = {}) => UseInstalledAppUisResult

On this page