1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 2023-03-30 14:41:04 +03:00
parent de3fc32706
commit 716efc5691
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
2 changed files with 4 additions and 8 deletions

View File

@ -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;

View File

@ -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;