useAppShell
The primary hook for accessing the shell context. It provides access to registered apps, configurations, navigation, and iframe references.
import { useAppShell } from '@akinon/app-shell';
const ShellComponent = () => {
const { apps, configs, navigate } = useAppShell();
return (
<div>
<h1>Registered Apps: {apps.length}</h1>
<button onClick={() => navigate({ path: '/dashboard' })}>
Go to Dashboard
</button>
</div>
);
};Return Value
Property
Type
Description
AppShellContextState Type
Usage Examples
Accessing Registered Apps
Programmatic Navigation
Accessing App Configurations
Working with Iframe References
Sending Messages via Framebus
Best Practices
1. Use at the Right Level
2. Check for Optional Values
3. Memoize Derived Values
Related
Last updated
Was this helpful?

