Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Import metabase/router through its single entry point (#79298)

Romeo Van Snickdd70db787ebe
diff --git a/frontend/src/metabase/dashboard/hooks/use-dashboard-url-query.unit.spec.tsx b/frontend/src/metabase/dashboard/hooks/use-dashboard-url-query.unit.spec.tsx
index cf06beddeba..67af6e42e58 100644
--- a/frontend/src/metabase/dashboard/hooks/use-dashboard-url-query.unit.spec.tsx
+++ b/frontend/src/metabase/dashboard/hooks/use-dashboard-url-query.unit.spec.tsx
@@ -10,8 +10,12 @@ import {
createMockStoreDashboard,
} from "metabase/redux/store/mocks";
import type { Location } from "metabase/router";
-import { push, replace, useIsNavigationHeld } from "metabase/router";
-import { notifyLocationListeners } from "metabase/router/navigator";
+import {
+ notifyLocationListeners,
+ push,
+ replace,
+ useIsNavigationHeld,
+} from "metabase/router";
import type { ParameterValueOrArray } from "metabase-types/api";
import { createMockParameter } from "metabase-types/api/mocks";
diff --git a/frontend/src/metabase/router/index.ts b/frontend/src/metabase/router/index.ts
index f1f1e3d23a6..808be80b198 100644
--- a/frontend/src/metabase/router/index.ts
+++ b/frontend/src/metabase/router/index.ts
@@ -31,6 +31,7 @@ export { queryToSearch, toFacadeLocation } from "./location";
export { createLocationMirror, type LocationMirror } from "./location-mirror";
export {
createRouterNavigator,
+ notifyLocationListeners,
subscribeLocation,
toNavigateArgs,
} from "./navigator";