Next.js · Senior · Question 8 of 75

Why shouldn't Server Actions be used for loading data?

Explanation

Next.js dispatches Server Actions from one client sequentially: the second waits for the first so the server tree stays consistent with the result. That's good for mutations but bad for parallel reads. Load data in Server Components (or Route Handlers) and keep actions for changes.

Further reading

Problem with a question

Next.js · Senior · question 8

Test yourself

Take the Next.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz