diff --git a/src/renderer/navigation.ts b/src/renderer/navigation.ts index f0d37ac097..f894f37140 100644 --- a/src/renderer/navigation.ts +++ b/src/renderer/navigation.ts @@ -11,6 +11,9 @@ import { clusterViewRoute, IClusterViewRouteParams } from "./components/cluster- export const history = typeof window !== "undefined" ? createBrowserHistory() : createMemoryHistory(); export const navigation = createObservableHistory(history); +/** + * Navigate to a location. Works only in renderer. + */ export function navigate(location: LocationDescriptor) { const currentLocation = navigation.getPath(); navigation.push(location);