Unable to handle arrays in searchParams
Hello there, I have a few questions about this great library:
1. Is it possible to handle arrays in searchParams? I tried `searchParams.open({'filters[regions]': '1,2,3'})` but I get `?filters%5Bregions%5D%5B%5D=2%2C5%2C4%2C1`, so when using `decodeURI('?filters[regions][]=2%2C5%2C4%2C1')` I get `?filters[regions][]=2%2C5%2C4%2C1`
2. Also, its not possible to manage arrays like many sites/api do: `filters[regions]=1&filters[regions]=2`
3. How would you remove `searchParams`? for example I don't want persons=0 to be in the URL, I would remove the searchParam in that case
Thanks.
关闭于 2023-11-09 2 条评论