mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix: preventing <App/> to render on cluster refresh (#2253)
* Removing @observer decorator from <App/> Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Add observer wrapper to <MainLayoutHeader/> Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fix eslint claim Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Moving extension route renderers to components Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Clean up Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Removing external observables out from App render() Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fetching hosted cluster inside Command Palette Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Setting route lists explicitly To avoid using observable data within tabRoutes arrays Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Review fixes Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
bcaef79386
commit
852aa1147f
11 files changed
+70
-96
No files matched your search
@@ -1,12 +1,21 @@
|
||||
import { RouteProps } from "react-router";
|
||||
import { Config } from "./config";
|
||||
import { IURLParams } from "../../../common/utils/buildUrl";
|
||||
import { configMapsURL } from "../+config-maps/config-maps.route";
|
||||
import { configMapsRoute, configMapsURL } from "../+config-maps/config-maps.route";
|
||||
import { hpaRoute } from "../+config-autoscalers";
|
||||
import { limitRangesRoute } from "../+config-limit-ranges";
|
||||
import { pdbRoute } from "../+config-pod-disruption-budgets";
|
||||
import { resourceQuotaRoute } from "../+config-resource-quotas";
|
||||
import { secretsRoute } from "../+config-secrets";
|
||||
|
||||
export const configRoute: RouteProps = {
|
||||
get path() {
|
||||
return Config.tabRoutes.map(({ routePath }) => routePath).flat();
|
||||
}
|
||||
path: [
|
||||
configMapsRoute,
|
||||
secretsRoute,
|
||||
resourceQuotaRoute,
|
||||
limitRangesRoute,
|
||||
hpaRoute,
|
||||
pdbRoute
|
||||
].map(route => route.path.toString())
|
||||
};
|
||||
|
||||
export const configURL = (params?: IURLParams) => configMapsURL(params);
|
||||
Reference in new issue
Block a user