Next.js Discord

Discord Forum

Server actions

Answered
Orinoco Crocodile posted this in #help-forum
Open in Discord
Orinoco CrocodileOP
Does anyone know if you can use server actions to fetch data?
Answered by B33fb0n3
yes, you can, but you shouldn't, as it has several disadvantages compared to using normal route handlers (parallism, data quality, caching, ...). So use normal route handlers instead
View full answer

1 Reply

@Orinoco Crocodile Does anyone know if you can use server actions to fetch data?
yes, you can, but you shouldn't, as it has several disadvantages compared to using normal route handlers (parallism, data quality, caching, ...). So use normal route handlers instead
Answer