External API fetch advise
Hello, I'm using Convex folder for all my data-access layer now. I need to fetch some data from other APIs and they don't interact with Convex. I'm using Next.js. Is there any downside if I use an action in a 'use node' file for fetching data, or is better to use a next.js route instead?
4 Replies
yeah, no problem using an action with
use node
if you need to
even if you're not using the database, that's fineThank you @jamwt!
yw!
Hey Jamie, I'm experiencing a weird pattern here.
This is my action function
But then in the frontend, I'm trying this...
And then the only thing left is saving the response in state
Is there a better way?
@jamwt
This is working, but I think there is too much code.