FelipeJz
FelipeJz16mo ago

Conditional queries in Nextjs

Is that possible? I need to get information from a query once, not open a socket connection.
4 Replies
ballingt
ballingt16mo ago
Is this from React?
ballingt
ballingt16mo ago
"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
ballingt
ballingt16mo ago
If you don't want to open a WebSocket connection at all, use the ConvexHttpClient instead of the ConvexReactClient
FelipeJz
FelipeJzOP16mo ago
One-off queries is what i needed, thank you!

Did you find this page helpful?