Conditional queries in Nextjs
Is that possible? I need to get information from a query once, not open a socket connection.
4 Replies
Is this from React?
"conditional queries" usually means skipping a query, but it sounds like you want a "one-off query" https://docs.convex.dev/client/react#skipping-queries
Convex React | Convex Developer Hub
Convex React is the client library enabling your React application to interact
If you don't want to open a WebSocket connection at all, use the ConvexHttpClient instead of the ConvexReactClient
One-off queries is what i needed, thank you!