`searchParams` and `query` cannot be correctly mutated on $URL instance
Closed this issue · 1 comments
vara855 commented
Environment
ufo@1.3.2
node 18.18.0
Reproduction
https://stackblitz.com/edit/stackblitz-starters-nmd1v4?file=package-lock.json
Describe the bug
- Query cannot be correctly mutated in case of
$URL
without/
at the end searchParams
method creates newURLSearchParams
instance which cannot be mutated. I would like the same behavior as in browser/node URL. Maybe it shouldn't be a getter, just a class field?
Additional context
No response
Logs
No response