Why Build a DataLoader Component?
2:41
The Basic DataLoader Component
9:00
Exercise 1 - Custom Authentication
0:42
Exercise 1 Solution
1:07
Debouncing API Calls (updated)
5:12
The Loading State
3:29
Exercise 2 - Spinner Plus
1:37
Exercise 2 Solution
1:26
The Error State
3:41
DataLoader Component Conclusion
1:10
0% done with Advanced Components - Slots III (DataLoader Component)

Chapter 3 of 5 in Advanced Components: Slots
The Error State

When there's a problem with the API call, we want to let the user know.

We equip the DataLoader Component with a default error message, and provide a named slot if the developer wants to add a custom message.

What do others think of VueScreencasts?
"Thank you so much."
—Ayoub Hammoudan
"Saved me loads of time!!"
—Jack Simple
"<3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3"
—Aymen Oppa Software
"Thanks for your videos."
—Rafael Canan
Take your career to the next level