Skip to content

Commit dd607e0

Browse files
authored
Remove polyfil.io reference from warning message (#11741)
1 parent 32ff05a commit dd607e0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.changeset/flat-seals-hunt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router-dom": patch
3+
---
4+
5+
Remove `polyfill.io` reference from warning message because the domain was sold and has since been determined to serve malware. See https://sansec.io/research/polyfill-supply-chain-attack.

packages/react-router-dom/index.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -1464,11 +1464,7 @@ export function useSearchParams(
14641464
`You cannot use the \`useSearchParams\` hook in a browser that does not ` +
14651465
`support the URLSearchParams API. If you need to support Internet ` +
14661466
`Explorer 11, we recommend you load a polyfill such as ` +
1467-
`https://github.com/ungap/url-search-params\n\n` +
1468-
`If you're unsure how to load polyfills, we recommend you check out ` +
1469-
`https://polyfill.io/v3/ which provides some recommendations about how ` +
1470-
`to load polyfills only for users that need them, instead of for every ` +
1471-
`user.`
1467+
`https://github.com/ungap/url-search-params.`
14721468
);
14731469

14741470
let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));

0 commit comments

Comments
 (0)