fix: make current user store async so storybook works
This commit is contained in:
@@ -105,4 +105,6 @@ export class UmbCurrentUserStore extends UmbContextBase<UmbCurrentUserStore> {
|
||||
}
|
||||
}
|
||||
|
||||
export default UmbCurrentUserStore;
|
||||
|
||||
export const UMB_CURRENT_USER_STORE_CONTEXT = new UmbContextToken<UmbCurrentUserStore>('UmbCurrentUserStore');
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { UmbCurrentUserStore } from './current-user.store.js';
|
||||
import type { ManifestRepository, ManifestStore, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const UMB_CURRENT_USER_REPOSITORY_ALIAS = 'Umb.Repository.CurrentUser';
|
||||
@@ -14,7 +13,7 @@ const store: ManifestStore = {
|
||||
type: 'store',
|
||||
alias: 'Umb.Store.CurrentUser',
|
||||
name: 'Current User Store',
|
||||
api: UmbCurrentUserStore,
|
||||
api: () => import('./current-user.store.js'),
|
||||
};
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [repository, store];
|
||||
|
||||
Reference in New Issue
Block a user