Vue
Nuxt.js - Creating an e-Commerce Site with Vue.js

A Look At AsyncData

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

The asyncData method lets you handle async operations before setting the component data. It is called every time before loading the component (page components), and can be used to fetch some data and return the component data.

In this video, Erik explains what asyncData is and how the result from asyncData is merged with the data from an app.

Link:

 

I finished! On to the next chapter