Move stuff in application start to earlier timeslot having no real need to be done so late

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen committed 2023-03-31 08:39:30 +03:00
1 parent de3fc32706
commit 716efc5691
2 files changed
+4 -8

No files matched your search

@@ -3,9 +3,7 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import {
afterApplicationIsLoadedInjectionToken,
} from "@k8slens/application";
import { onLoadOfApplicationInjectionToken } from "@k8slens/application";
import { bootstrap } from "./bootstrap";
import startFrameInjectable from "./start-frame/start-frame.injectable";
@@ -22,7 +20,7 @@ const bootstrapInjectable = getInjectable({
causesSideEffects: true,
injectionToken: afterApplicationIsLoadedInjectionToken,
injectionToken: onLoadOfApplicationInjectionToken,
});
export default bootstrapInjectable;
@@ -6,9 +6,7 @@ import { getInjectable } from "@ogre-tools/injectable";
import { runManyFor } from "@k8slens/run-many";
import * as tokens from "../before-frame-starts/tokens";
import currentlyInClusterFrameInjectable from "../routes/currently-in-cluster-frame.injectable";
import {
afterApplicationIsLoadedInjectionToken,
} from "@k8slens/application";
import { onLoadOfApplicationInjectionToken } from "@k8slens/application";
const startFrameInjectable = getInjectable({
id: "start-frame",
@@ -44,7 +42,7 @@ const startFrameInjectable = getInjectable({
};
},
injectionToken: afterApplicationIsLoadedInjectionToken,
injectionToken: onLoadOfApplicationInjectionToken,
});
export default startFrameInjectable;