Questions tagged [urlsearchparams]
65 questions
0
votes
1 answer
React JS NAN 'new URLSearchParams(this.props.location.search)'
I'm trying to recuperate URLSearchParams(props.location.search) with params in text format but i only succes to recuperate the params with numbers.
ex = {id:1, name:'Adrien', age:23} => result {id:1, name:Nan, age:23}
My code :
Home.js
let Home…
user13130661
0
votes
0 answers
JavaScript ES6 - How to Pass API URLSearchParams between classes
I'm trying to pass an API URL that's has it's params manipulated with the URLSearchParams interface, and I would like to pass that result to an adapter class to fetch that url. As a JS newbie, I am struggling to pass the URL generated in one class…

ajgu
- 1
- 1
-1
votes
2 answers
Problem with convert URLSearchParams to valid object
I need convert query string location[okrug][]=38&location[okrug][]=41 to object.
for (let [key, val] of new URLSearchParams(location.search)) {
console.log(key) //got location except of location[okrug][]
console.log(val) //got [object…

osipovmn
- 1
- 1
-1
votes
1 answer
Strange behaviour of params.append with axios
export const getCharactersAsync = createAsyncThunk('getCharactersAsync', async (data) => {
const response = await axios.get('users', { params: { limit: data.limit } });
return response.data;
});
this code block allows me to control limit…

bacayo
- 46
- 5
-2
votes
0 answers
Brave Search with multiple domains
I'm trying to use Brave Search Engine to search from specific domains, but I can't properly format the query with the 'site' and 'sites' parameters for multiple domains.
The following URL works for a single domain, but not for…

Luísa Moura
- 51
- 1
- 5