mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix initialization ordering bug
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f7a9643c11
commit
518908ba61
@ -4,8 +4,8 @@
|
|||||||
*/
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import userStoreInjectable from "../../common/user-store/user-store.injectable";
|
import userStoreInjectable from "../../common/user-store/user-store.injectable";
|
||||||
|
import { initDefaultUpdateChannelOnRendererInjectable } from "../../features/application-update/common/selected-update-channel/default-update-channel.injectable";
|
||||||
import { beforeFrameStartsInjectionToken } from "../before-frame-starts/before-frame-starts-injection-token";
|
import { beforeFrameStartsInjectionToken } from "../before-frame-starts/before-frame-starts-injection-token";
|
||||||
import { initializeBuildVersionOnRendererInjectable } from "../vars/build-version.injectable";
|
|
||||||
|
|
||||||
const initUserStoreInjectable = getInjectable({
|
const initUserStoreInjectable = getInjectable({
|
||||||
id: "init-user-store",
|
id: "init-user-store",
|
||||||
@ -15,7 +15,7 @@ const initUserStoreInjectable = getInjectable({
|
|||||||
return {
|
return {
|
||||||
id: "init-user-store",
|
id: "init-user-store",
|
||||||
run: () => userStore.load(),
|
run: () => userStore.load(),
|
||||||
runAfter: di.inject(initializeBuildVersionOnRendererInjectable),
|
runAfter: di.inject(initDefaultUpdateChannelOnRendererInjectable),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
injectionToken: beforeFrameStartsInjectionToken,
|
injectionToken: beforeFrameStartsInjectionToken,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user