Considering the below:
const [searchParams, setSearchParams] = useSearchParams();
console.log(searchParams.toString());
console.log(typeof searchParams);
console.log(Object.values(searchParams));
And passing the URL http://localhost:3000/client-data?task=test
This logs:
task=test (The string of the object, understandable)
object (We know it's of type object, and has some key value pairs from prior test)
[] (Why are we not getting any keys / values from Object.keys() etc?)