Skip to content

Commit d27e673

Browse files
authored
Revert "Preload console route chunks on sidebar link hover. (#2081)" (#2082)
This reverts commit 315ea3c.
1 parent 315ea3c commit d27e673

6 files changed

Lines changed: 8 additions & 20 deletions

File tree

apps/cloud/src/router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createRouter } from "@tanstack/react-router";
2-
import { sharedConsoleRouterOptions } from "@executor-js/react/console-router-options";
32
import { routeTree } from "./routeTree.gen";
43

54
export const getRouter = () => {
65
return createRouter({
76
routeTree,
8-
...sharedConsoleRouterOptions,
7+
scrollRestoration: true,
8+
defaultPreloadStaleTime: 0,
99
});
1010
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createRouter } from "@tanstack/react-router";
2-
import { sharedConsoleRouterOptions } from "@executor-js/react/console-router-options";
32

43
import { routeTree } from "./routeTree.gen";
54

65
export const getRouter = () =>
76
createRouter({
87
routeTree,
9-
...sharedConsoleRouterOptions,
8+
scrollRestoration: true,
9+
defaultPreloadStaleTime: 0,
1010
});

apps/host-selfhost/web/router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createRouter } from "@tanstack/react-router";
2-
import { sharedConsoleRouterOptions } from "@executor-js/react/console-router-options";
32

43
import { routeTree } from "./routeTree.gen";
54

65
export const getRouter = () =>
76
createRouter({
87
routeTree,
9-
...sharedConsoleRouterOptions,
8+
scrollRestoration: true,
9+
defaultPreloadStaleTime: 0,
1010
});

packages/app/src/router.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createRouter } from "@tanstack/react-router";
2-
import { sharedConsoleRouterOptions } from "@executor-js/react/console-router-options";
32
import { routeTree } from "./routeTree.gen";
43

54
export const getRouter = () => {
65
return createRouter({
76
routeTree,
8-
...sharedConsoleRouterOptions,
7+
scrollRestoration: true,
8+
defaultPreloadStaleTime: 0,
99
});
1010
};

packages/react/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"bun": "./src/console-routes.ts",
1010
"default": "./dist/console-routes.js"
1111
},
12-
"./console-router-options": "./src/console-router-options.ts",
1312
"./api/oauth-popup": "./src/api/oauth-popup.ts",
1413
"./api/shell-host": "./src/api/shell-host.ts",
1514
"./api/*": "./src/api/*.tsx",

packages/react/src/console-router-options.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)