Concept Flow - Loading states pattern
Component mounts
Set loading = true
Fetch data async
Data received?
No→Wait
Yes
Set loading = false
Render data or loading indicator
This flow shows how a Vue component sets a loading flag, fetches data asynchronously, then updates the UI when data arrives.