Infinite loop trying to use preloadQuery and usePreloadedQuery
I am essentially trying to copy this pattern from the better-auth examples https://github.com/get-convex/better-auth/blob/main/examples/next/app/(auth)/dashboard/server/client.tsx
I end up with an infinite loop somehow
I'm not sure what's causing the loop.
Even weirder, it still happens even if I remove the useEffect completely and have just this:
I even tried replacing my
PricingPageServer
with a very simple component that doesn't do anything, same issue
A bit more details here https://discord.com/channels/1019350475847499849/1365754331873415440/14081398277145888022 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!
Discussion picked up in this thread: https://discord.com/channels/1019350475847499849/1408139827714588802