mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- Fixes pod logs not working on initial load - Removes DockStore as a dependency of all *TabStore - Removes all the reactions about loading new data from the stores - Removes dependencies on selectedTabId from all *TabStore's Signed-off-by: Sebastian Malton <sebastian@malton.name>
24 lines
858 B
TypeScript
24 lines
858 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
|
|
import { UpgradeChartTabStore } from "./store";
|
|
import createDockTabStoreInjectable from "../dock-tab-store/create-dock-tab-store.injectable";
|
|
import createStorageInjectable from "../../../utils/create-storage/create-storage.injectable";
|
|
|
|
const upgradeChartTabStoreInjectable = getInjectable({
|
|
instantiate: (di) => {
|
|
const createDockTabStore = di.inject(createDockTabStoreInjectable);
|
|
|
|
return new UpgradeChartTabStore({
|
|
createStorage: di.inject(createStorageInjectable),
|
|
valuesStore: createDockTabStore<string>(),
|
|
});
|
|
},
|
|
|
|
lifecycle: lifecycleEnum.singleton,
|
|
});
|
|
|
|
export default upgradeChartTabStoreInjectable;
|