truered8
truered85mo ago

Call query once (alternative to `fetchQuery`)

Is there a way to call a query once and not have it be reactive to changes? fetchQuery in the next.js SDK accomplishes this but I am using Expo and there does not seem to be an alternative. My current workaround is to call the query from an action.
3 Replies
Convex Bot
Convex Bot5mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
lee
lee5mo ago
const convex = useConvex(); const result = await convex.query(...)
truered8
truered8OP5mo ago
I missed that, thanks!

Did you find this page helpful?