manual update after merge

This commit is contained in:
Mads Rasmussen
2023-04-20 15:15:53 +02:00
parent eb4b1cbffb
commit 7243365e44

View File

@@ -9,15 +9,19 @@ export class UmbStoreExtensionInitializer {
constructor(host: UmbControllerHostElement) {
this.host = host;
new UmbObserverController(this.host, umbExtensionsRegistry.extensionsOfTypes(['store', 'treeStore']), (stores) => {
if (!stores) return;
new UmbObserverController(
this.host,
umbExtensionsRegistry.extensionsOfTypes(['store', 'treeStore', 'itemStore']),
(stores) => {
if (!stores) return;
stores.forEach((store) => {
if (this.#storeMap.has(store.alias)) return;
stores.forEach((store) => {
if (this.#storeMap.has(store.alias)) return;
// Instantiate and provide stores. Stores are self providing when the class is instantiated.
this.#storeMap.set(store.alias, createExtensionClass(store, [this.host]));
});
});
// Instantiate and provide stores. Stores are self providing when the class is instantiated.
this.#storeMap.set(store.alias, createExtensionClass(store, [this.host]));
});
}
);
}
}