What is the best way to handle dependent queries. Will the `useQuery`?
user.value
must be a string before the query can run. target
accepts a string to build the query string however typescript is complaining because it thinks it could be null there
3 Replies
harsh-harlequinOP•3y ago
Am I correct in my understanding that I can safely cast this to a string as it will never run unless it is a string?
conscious-sapphire•3y ago
Yes
harsh-harlequinOP•3y ago
Thanks 🙂