When setQuery gets called the URL gets updated with decoded path, when stepping through the code the line where the conversion happens is in useQueryParams.js
line 115: deps.setLocation(encodedChanges, updateType)
It looks like the location object is decoding the path. There are functions to encode the params but not the path.
Please advice.
When calling setQuery the URL path gets decoded which breaks the API call because of the special char. http://localhost:3000/articles/abc%5B0%5D?x=3 , gets converted to http://localhost:3000/articles/abc[0]?x=3
Example: ` const [query, setQuery] = useQueryParams({ x: NumberParam, ..... });
setQuery( { x: 22 ,... ) `
When setQuery gets called the URL gets updated with decoded path, when stepping through the code the line where the conversion happens is in useQueryParams.js line 115:
deps.setLocation(encodedChanges, updateType)
It looks like the location object is decoding the path. There are functions to encode the params but not the path. Please advice.