import { navigate } from "takeme";
import { maybeStripLegacyUrl } from "./link";

export const push = (url: string) => navigate(maybeStripLegacyUrl(url));

export function getPathArray() {
  return location.pathname.split("/");
}

/** This is a stub from the `react-router` days. Don't use it anymore. */
export const history = { push, getCurrentLocation: () => window.location };

import { navigate } from "takeme";
import { maybeStripLegacyUrl } from "./link";

export const push = (url: string) => navigate(maybeStripLegacyUrl(url));

export const getPathArray = () => location.pathname.split("/");

/** This is a stub from the `react-router` days. Don't use it anymore. */
export const history = { push, getCurrentLocation: () => window.location };

--- 
+++ 
@@ -3,7 +3,9 @@
 
 export const push = (url: string) => navigate(maybeStripLegacyUrl(url));
 
-export const getPathArray = () => location.pathname.split("/");
+export function getPathArray() {
+  return location.pathname.split("/");
+}
 
 /** This is a stub from the `react-router` days. Don't use it anymore. */
 export const history = { push, getCurrentLocation: () => window.location };
Use non-arrow fn, just to be safe.
