Disable/enable queries: SOLVED (use "skip")
I've seen it mentioned elsewhere that
enabled is in the works, and to use useQueries in the meantime. It doesn't seem like useQueries, even if you memoize the args object, actually works this way. It simply never updates when the dynamically excluded query is eventually added.5 Replies
Code:
Man, your model keeps making issues non-blocking. I can just handle undefined args in the convex query, no need for useQueries. Good to go on this, enabled is just a nice to have for me.
Like is this maybe even better then
enabled? It might be better.Hey @erquhart this is definitely one way of getting around the limitation, handling it on the server.
A way to skip subscribing to the query from the client should be coming soon as well.
Hey, is there any development on this?
Convex React | Convex Developer Hub
Convex React is the client library enabling your React application to interact
Yeah we could probably delete this old thread, now that "skip" has existed for a while?