How to use skip in my useStableQuery?
I wonder if I can use
skip
using my useStableQuery, when args are not present. The reason I got to think about it was when I realised that I got a lot of similar logs like this one within Convex dashboard:
I then tried something like this:
This is my useStableQuery:
How can I make sure I conditionally query when args are present?3 Replies
this is going to sound silly. The error message says you're passing in
{id: null}
. And null !== undefined
so you're not hitting the condition to skipHaha, thanks @lee ! Can you tell me if the approach is the correct one, except for the null vs undefined part?
totally, looks good to me