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:
parent
de3fc32706
commit
716efc5691
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user