Chapter quiz · Data Fetching

Test what you learned.

8 questions on Data Fetching. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Data Fetching — Chapter Quiz

Eight questions covering useFetch, useAsyncData, server routes, and error handling.

0/ 9
  1. Question 1
    1

    What does useFetch do that $fetch alone does not?

  2. Question 2
    2

    When should you prefer useAsyncData over useFetch?

  3. Question 3
    3

    Files in server/api/ are auto-registered as HTTP routes.

  4. Question 4
    4

    How do you re-run a useFetch request manually?

  5. Question 5
    5

    Which option re-fetches when reactive deps change?

  6. Question 6
    6

    To forward cookies from the browser into your useFetch, use use________Headers(['cookie']).

  7. Question 7
    7

    How do you throw a typed HTTP error from a server route?

  8. Question 8
    8

    Which are valid ways to fetch data in a Nuxt page?

    Select all that apply.

Pick an answer — instant feedback as you go.