Skip to main content
React hook to access the full AppShell context, including both static configuration (title, icon, modules) and dynamic context data. For better performance, consider using useAppShellConfig() or useAppShellData() if you only need one or the other.

Signature

Returns

string | undefined
App title passed to AppShell
ReactNode | undefined
App icon passed to AppShell
RootConfiguration
Configuration object containing modules, settings resources, basePath, errorBoundary, and locale
ContextData
Custom context data passed to AppShell. Type-safe when augmented via AppShellRegister

Usage

Basic Usage

Accessing Context Data

Type-Safe Context Data

Define your context data type using TypeScript module augmentation:
Then use it with full type safety:

Performance Considerations

This hook subscribes to both the config context and data context. If you only need configuration or only need context data, use the specialized hooks instead:
  • Use useAppShellConfig() for static configuration only (title, icon, modules, basePath)
  • Use useAppShellData() for dynamic context data only
This avoids unnecessary re-renders when only one context changes.
  • useAppShellConfig() - Access only configuration (better performance)
  • useAppShellData() - Access only context data (better performance)