[Bug]: "TypeError: defaultSearchParams.keys() is not iterable"
in Firefox Addon content scripts
#10618
Labels
"TypeError: defaultSearchParams.keys() is not iterable"
in Firefox Addon content scripts
#10618
What version of React Router are you using?
6.11.0
Steps to Reproduce
There is a known issue in Firefox — still open after 9 years — that manifests in the following TypeError when using React Router DOM in the content scripts of a Firefox Addon:
Here's a link to the relevant Bugzilla ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=1023984
Expected Behavior
useSearchParams
doesn't not produce an error.Actual Behavior
React experiences a fatal error at runtime, including recursive
"Invalid hook call"
warnings. This is a showstopper for anyone who wants to use React Router DOM in a web extension (for my case, paired withMemoryRouter
to simplify routing for UIs that are injected into content scripts).The text was updated successfully, but these errors were encountered: