mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: observableHistoryInjectionToken and 1 revert for GlobalOverride
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
1 parent
db9a3675e1
commit
8c0220c353
22 files changed
+51
-45
No files matched your search
@@ -3,10 +3,10 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
|
||||
import type { History } from "history";
|
||||
import type { History, LocationState } from "history";
|
||||
import { createBrowserHistory } from "history";
|
||||
|
||||
export const historyInjectionToken = getInjectionToken<History>({
|
||||
export const historyInjectionToken = getInjectionToken<History<LocationState>>({
|
||||
id: "history-injection-token",
|
||||
});
|
||||
|
||||
|
||||
@@ -2,10 +2,15 @@
|
||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { createObservableHistory } from "mobx-observable-history";
|
||||
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
|
||||
import { createObservableHistory, ObservableHistory } from "mobx-observable-history";
|
||||
import { searchParamsOptions } from "./search-params";
|
||||
import { historyInjectable } from "./history.injectable";
|
||||
import type { LocationState } from "history";
|
||||
|
||||
export const observableHistoryInjectionToken = getInjectionToken<ObservableHistory<LocationState>>({
|
||||
id: "observable-history-injection-token",
|
||||
});
|
||||
|
||||
export const observableHistoryInjectable = getInjectable({
|
||||
id: "observable-history",
|
||||
@@ -18,4 +23,5 @@ export const observableHistoryInjectable = getInjectable({
|
||||
|
||||
return navigation;
|
||||
},
|
||||
injectionToken: observableHistoryInjectionToken,
|
||||
});
|
||||
Reference in new issue
Block a user