
This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
To Await or Not Await useFetch (Blocking vs Non-Blocking)
A common question I’ve heard about Nuxt’s useFetch and useAsyncAwait is: should I always await the result? The answer is: it depends! Awaiting the request will result in blocking navigation unless you explicitly provide the lazy option or use the lazy version of the composable. If you omit the await you’ll be non-blocking navigation without the lazy option.
Links
