Skip to content

Commit ef8e8a5

Browse files
committed
fix(greenhouse): do not copy url state when navigating
1 parent 17b21fd commit ef8e8a5

2 files changed

Lines changed: 29 additions & 27 deletions

File tree

apps/greenhouse/src/components/nav/PluginNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const PluginNav = () => {
6969
const { data: authData, loggedIn, login, logout } = useAuth()
7070

7171
const navigateToApp = (appId: string) => {
72-
navigate({ to: `/${appId}`, search: (prev) => ({ ...prev }) })
72+
navigate({ to: `/${appId}` })
7373
}
7474

7575
return (

apps/greenhouse/src/routeTree.gen.ts

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,60 +8,60 @@
88
// You should NOT make any changes in this file as it will be overwritten.
99
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010

11-
import { Route as rootRouteImport } from "./routes/__root"
12-
import { Route as IndexRouteImport } from "./routes/index"
13-
import { Route as ExtensionIdSplatRouteImport } from "./routes/$extensionId.$"
11+
import { Route as rootRouteImport } from './routes/__root'
12+
import { Route as IndexRouteImport } from './routes/index'
13+
import { Route as ExtensionIdSplatRouteImport } from './routes/$extensionId.$'
1414

1515
const IndexRoute = IndexRouteImport.update({
16-
id: "/",
17-
path: "/",
16+
id: '/',
17+
path: '/',
1818
getParentRoute: () => rootRouteImport,
1919
} as any)
2020
const ExtensionIdSplatRoute = ExtensionIdSplatRouteImport.update({
21-
id: "/$extensionId/$",
22-
path: "/$extensionId/$",
21+
id: '/$extensionId/$',
22+
path: '/$extensionId/$',
2323
getParentRoute: () => rootRouteImport,
2424
} as any)
2525

2626
export interface FileRoutesByFullPath {
27-
"/": typeof IndexRoute
28-
"/$extensionId/$": typeof ExtensionIdSplatRoute
27+
'/': typeof IndexRoute
28+
'/$extensionId/$': typeof ExtensionIdSplatRoute
2929
}
3030
export interface FileRoutesByTo {
31-
"/": typeof IndexRoute
32-
"/$extensionId/$": typeof ExtensionIdSplatRoute
31+
'/': typeof IndexRoute
32+
'/$extensionId/$': typeof ExtensionIdSplatRoute
3333
}
3434
export interface FileRoutesById {
3535
__root__: typeof rootRouteImport
36-
"/": typeof IndexRoute
37-
"/$extensionId/$": typeof ExtensionIdSplatRoute
36+
'/': typeof IndexRoute
37+
'/$extensionId/$': typeof ExtensionIdSplatRoute
3838
}
3939
export interface FileRouteTypes {
4040
fileRoutesByFullPath: FileRoutesByFullPath
41-
fullPaths: "/" | "/$extensionId/$"
41+
fullPaths: '/' | '/$extensionId/$'
4242
fileRoutesByTo: FileRoutesByTo
43-
to: "/" | "/$extensionId/$"
44-
id: "__root__" | "/" | "/$extensionId/$"
43+
to: '/' | '/$extensionId/$'
44+
id: '__root__' | '/' | '/$extensionId/$'
4545
fileRoutesById: FileRoutesById
4646
}
4747
export interface RootRouteChildren {
4848
IndexRoute: typeof IndexRoute
4949
ExtensionIdSplatRoute: typeof ExtensionIdSplatRoute
5050
}
5151

52-
declare module "@tanstack/react-router" {
52+
declare module '@tanstack/react-router' {
5353
interface FileRoutesByPath {
54-
"/": {
55-
id: "/"
56-
path: "/"
57-
fullPath: "/"
54+
'/': {
55+
id: '/'
56+
path: '/'
57+
fullPath: '/'
5858
preLoaderRoute: typeof IndexRouteImport
5959
parentRoute: typeof rootRouteImport
6060
}
61-
"/$extensionId/$": {
62-
id: "/$extensionId/$"
63-
path: "/$extensionId/$"
64-
fullPath: "/$extensionId/$"
61+
'/$extensionId/$': {
62+
id: '/$extensionId/$'
63+
path: '/$extensionId/$'
64+
fullPath: '/$extensionId/$'
6565
preLoaderRoute: typeof ExtensionIdSplatRouteImport
6666
parentRoute: typeof rootRouteImport
6767
}
@@ -72,4 +72,6 @@ const rootRouteChildren: RootRouteChildren = {
7272
IndexRoute: IndexRoute,
7373
ExtensionIdSplatRoute: ExtensionIdSplatRoute,
7474
}
75-
export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)._addFileTypes<FileRouteTypes>()
75+
export const routeTree = rootRouteImport
76+
._addFileChildren(rootRouteChildren)
77+
._addFileTypes<FileRouteTypes>()

0 commit comments

Comments
 (0)