1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/+helm-releases/removable-releases.injectable.ts
Sebastian Malton 645fb23d05 Fix rerendering of KubeObject views every 30s
- This was being caused by the Cluster.refreshAllowedResources() on main

- Using comparer.deepEquals on the set of allowedResources dependency
  means that changes are not propogated unless required

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-02 16:59:20 -05:00

23 lines
814 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 { observable } from "mobx";
import releasesInjectable from "./releases.injectable";
import deleteReleaseInjectable from "./delete-release/delete-release.injectable";
import { removableReleases } from "./removable-releases";
const removableReleasesInjectable = getInjectable({
instantiate: (di) =>
removableReleases({
releases: di.inject(releasesInjectable),
deleteRelease: di.inject(deleteReleaseInjectable),
releaseSelectionStatus: observable.map<string, boolean>(),
}),
lifecycle: lifecycleEnum.singleton,
});
export default removableReleasesInjectable;