Conditionally run useQuery
1. I have a component, a shad/cn dialog, which lives on another component.
2. inside this component, I use a "useQuery" to get some data from the DB. I pass as arguments to the "useQuery" function some Component Props (like a user._id)
3. these Component Props are defined only when the dialog is opened, so the first problem I had to solve was to make the "useQuery" function not execute until the dialog modal is opened, otherwise I would get an error.
4. now, when I click to open the dialog modal, I get this error (see screenshot) which I don't know how to solve. Any guidance?

