Metadata + Convex
Is it possible to retrive data from convex database to use in a dynamic metadata?
4 Replies
I ran into a problem of useQuery hook not being able to be used in a non react function like
Is there a way to get data from convex without having to use a hook that can be used in outside non react functions? (without having to use an external backend)
Thanks for any help!
Try this in a function called within a react app
Or if you're not in React at all, you can use
new ConvexHttpClient
Or
fetchQuery
if you're in Next.js (even if you're not in Next.js you can use fetchQuery
and override the url
)Tyvm