API Functions Returning from Server but showing undefined in client
I'm having an issue now where my backend and my front end are not syncing with my api functions. The client is saying the ids are undefined even tho the server is saying they are being returned.
Code:
https://gist.github.com/DylanDevelops/c200090842b559c1837591662b1c8154
2 Replies
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!
See https://docs.convex.dev/client/react#fetching-data
The useQuery hook returns undefined while the data is first loading and afterwards the return value of your query.
Convex React | Convex Developer Hub
Convex React is the client library enabling your React application to interact