This commit is contained in:
Stefan Pejcic
2024-05-08 19:52:27 +02:00
parent 9c8d080b57
commit 80303fadd5
2509 changed files with 0 additions and 594172 deletions

View File

@@ -1,18 +0,0 @@
import React from "react";
import { useLocation } from "react-router-dom";
import { setLastLocation } from "src/utils/last-location";
export const LocationChangeHandler = () => {
const { pathname } = useLocation();
React.useEffect(() => {
if (
typeof window !== "undefined" &&
typeof localStorage !== "undefined"
) {
setLastLocation(pathname);
}
}, [pathname]);
return null;
};