Data Sharing
AppShell's data sharing feature allows you to share your main application's data with micro-frontend applications.
Overview
How It Works
Flow
Usage
import { AppShellProvider, type ApplicationData } from '@akinon/app-shell';
const App = () => {
const data: ApplicationData = {
user: {
id: 1,
name: 'Jane Doe',
email: '[email protected]'
},
theme: 'dark',
locale: 'en'
};
return (
<AppShellProvider
apps={registeredApps}
data={data}
navigation={navigationConfig}
actions={shellActions}
>
{/* Your shell application */}
</AppShellProvider>
);
};ApplicationData Type
Example Data Structure
Dynamic Data Updates
Accessing Shared Data (Client Side)
Best Practices
1. Share Only Necessary Data
2. Avoid Data Duplication
3. Use Serializable Data Only
4. Keep Data Flat When Possible
Next Steps
Last updated
Was this helpful?

