change to pathname and params
This commit is contained in:
@@ -8,6 +8,7 @@ interface ClearParamsProps {
|
||||
|
||||
export default function ClearParams({ paramsToClear }: ClearParamsProps) {
|
||||
useEffect(() => {
|
||||
if (typeof window === "undefined") return;
|
||||
const url = new URL(window.location.href);
|
||||
let changed = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user