Next.js Discord

Discord Forum

How do i work with this api in next js

Answered
Schneider’s Smooth-fronted Caima… posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by averydelusionalperson
if you're using server components, you can directly fetch the data without useEffects or anything.
View full answer

14 Replies

if you're using server components, you can directly fetch the data without useEffects or anything.
Answer
just do it like you're doing rn?
zoro.zoroSearch
no, no need of fetch
just zoro
if that's what you want?
you put the await infront of Zoro.zoroSearch right?
is json function or variable?
in docs too?
you don't ig?
it doesn't mention in docs
yeah, if it is solved, mark the message as solution so the thread can be closed
🫡