We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e59af commit 5376e65Copy full SHA for 5376e65
hooks/useSection.ts
@@ -39,7 +39,8 @@ export const addBlockedQS = (queryStrings: string[]): void => {
39
/** Returns new props object with prop __cb with `pathname?querystring` from href */
40
const createStableHref = (href: string): string => {
41
const hrefUrl = new URL(href!, "http://localhost:8000");
42
- hrefUrl.searchParams.forEach((_: string, qsName: string) => {
+ const qsList = [...hrefUrl.searchParams.keys()];
43
+ qsList.forEach((qsName: string) => {
44
if (BLOCKED_QS.has(qsName)) hrefUrl.searchParams.delete(qsName);
45
});
46
hrefUrl.searchParams.sort();
0 commit comments