fix: observableHistoryInjectionToken and 1 revert for GlobalOverride

Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Gabriel authored and Sebastian Malton committed 2023-04-25 17:38:02 -04:00
1 parent db9a3675e1
commit 8c0220c353
22 files changed
+51 -45

No files matched your search

@@ -6,13 +6,13 @@ import { getInjectable } from "@ogre-tools/injectable";
import { emitWindowLocationChanged } from "../ipc";
import { reaction } from "mobx";
import { observableHistoryInjectable } from "@k8slens/routing";
import { observableHistoryInjectionToken } from "@k8slens/routing";
const watchHistoryStateInjectable = getInjectable({
id: "watch-history-state",
instantiate: (di) => {
const observableHistory = di.inject(observableHistoryInjectable);
const observableHistory = di.inject(observableHistoryInjectionToken);
return () => reaction(
() => observableHistory.location,