All quizzesMedium
SSR & Data Fetching
Preview — 3 of 10 questions
What are the differences between SSR, SSG, and ISR rendering modes in Nuxt 3?
AThey are different names for the same rendering approach
BSSR renders on each request; SSG pre-renders at build time; ISR re-generates pages in the background after a stale threshold
CSSR is client-side only; SSG is server-side only; ISR combines both
DSSG is only available in Nuxt 2; Nuxt 3 uses SSR and ISR exclusively
What is the difference between useFetch and the native fetch API in Nuxt?
AuseFetch is SSR-aware: it runs on the server during SSR and transfers the result to the client to avoid duplicate requests; it also provides reactive loading/error states
BuseFetch is exactly the same as fetch but with auto-import
CuseFetch only works on the client — use fetch for server-side data fetching
DuseFetch caches results indefinitely; fetch never caches
When should you use useAsyncData instead of useFetch?
AuseAsyncData is deprecated — always use useFetch
BuseAsyncData is faster because it skips HTTP — use it for performance-critical fetching
CuseAsyncData is for client-side only; useFetch handles SSR
DUse useAsyncData when the data fetching logic is not a simple URL fetch — e.g., querying a database directly, calling multiple APIs, or using custom logic
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.