Next.js · Senior · Question 8 of 75
Why shouldn't Server Actions be used for loading data?
- ✓Correct answer: The client calls them one at a time, as uncached POSTs - slow for reads
- 2Server Actions can't return values to the calling client code
- 3They run only at build time and don't work at runtime
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.