Cannot get search property in react-router-dom when using Link

I got the data using useLocation() of "react-router-dom" in the routing using Link href, but the search property seems to be empty.
I tried using "react-router-dom" history.push() and the search property had a value.
Doesn't routing using Link tags support search in useLocation() of "react-router-dom"?

Thanks for pointing this out. We understood the problem and we will think of possible solutions.