---
title: "Async state and network · vuejs.school"
description: "Let useAsyncState() own the loading, error and race handling for any promise, wait for a ref with until(), and know which useFetch() you are calling."
canonical_url: "https://vuejs.school/learn/vueuse/async-state-and-network"
meta:
  "og:description": "Let useAsyncState() own the loading, error and race handling for any promise, wait for a ref with until(), and know which useFetch() you are calling."
  "og:image": "https://vuejs.school/_og/d/a_~QXN5bmMgc3RhdGUgYW5kIG5ldHdvcmsgwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Async%2Bstate%2Band%2Bnetwork%2Cdescription_~TGV0IHVzZUFzeW5jU3RhdGUoKSBvd24gdGhlIGxvYWRpbmcsIGVycm9yIGFuZCByYWNlIGhhbmRsaW5nIGZvciBhbnkgcHJvbWlzZSwgd2FpdCBmb3IgYSByZWYgd2l0aCB1bnRpbCgpLCBhbmQga25vdyB3aGljaCB1c2VGZXRjaCgpIHlvdSBhcmUgY2FsbGluZy4%2Ceyebrow_~VnVlVXNlIMK3IExlc3NvbiA1IG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi92dWV1c2UvYXN5bmMtc3RhdGUtYW5kLW5ldHdvcmsi%2Cs_Ewr0hjGcl9J6-DZA.png"
  "og:image:alt": "Async state and network · vuejs.school"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Async state and network · vuejs.school"
  "twitter:image": "https://vuejs.school/_og/d/a_~QXN5bmMgc3RhdGUgYW5kIG5ldHdvcmsgwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Async%2Bstate%2Band%2Bnetwork%2Cdescription_~TGV0IHVzZUFzeW5jU3RhdGUoKSBvd24gdGhlIGxvYWRpbmcsIGVycm9yIGFuZCByYWNlIGhhbmRsaW5nIGZvciBhbnkgcHJvbWlzZSwgd2FpdCBmb3IgYSByZWYgd2l0aCB1bnRpbCgpLCBhbmQga25vdyB3aGljaCB1c2VGZXRjaCgpIHlvdSBhcmUgY2FsbGluZy4%2Ceyebrow_~VnVlVXNlIMK3IExlc3NvbiA1IG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi92dWV1c2UvYXN5bmMtc3RhdGUtYW5kLW5ldHdvcmsi%2Cs_Ewr0hjGcl9J6-DZA.png"
  "twitter:image:alt": "Async state and network · vuejs.school"
---

> Index of every page on this site: [llms.txt](https://vuejs.school/llms.txt)

# **Async state and network**

Let useAsyncState() own the loading, error and race handling for any promise, wait for a ref with until(), and know which useFetch() you are calling.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://vuejs.school/#website","@type":"WebSite","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school/","publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/vueuse/async-state-and-network#webpage","@type":"WebPage","description":"Let useAsyncState() own the loading, error and race handling for any promise, wait for a ref with until(), and know which useFetch() you are calling.","name":"Async state and network","url":"https://vuejs.school/learn/vueuse/async-state-and-network","breadcrumb":{"@id":"https://vuejs.school/learn/vueuse/async-state-and-network#breadcrumb"},"isPartOf":{"@id":"https://vuejs.school/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://vuejs.school/learn/vueuse/async-state-and-network"]}],"primaryImageOfPage":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/#identity","@type":"Organization","description":"A free AI-instructed school for Vue.js. Short tutorials, runnable code and quizzes that adapt to you.","name":"vuejs.school","url":"https://vuejs.school","logo":{"@id":"https://vuejs.school/#logo"}},{"@id":"https://vuejs.school/learn/vueuse/async-state-and-network#article","description":"Let useAsyncState() own the loading, error and race handling for any promise, wait for a ref with until(), and know which useFetch() you are calling.","headline":"Async state and network","inLanguage":"en","isAccessibleForFree":true,"thumbnailUrl":"https://vuejs.school/_og/d/a_~QXN5bmMgc3RhdGUgYW5kIG5ldHdvcmsgwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Async%2Bstate%2Band%2Bnetwork%2Cdescription_~TGV0IHVzZUFzeW5jU3RhdGUoKSBvd24gdGhlIGxvYWRpbmcsIGVycm9yIGFuZCByYWNlIGhhbmRsaW5nIGZvciBhbnkgcHJvbWlzZSwgd2FpdCBmb3IgYSByZWYgd2l0aCB1bnRpbCgpLCBhbmQga25vdyB3aGljaCB1c2VGZXRjaCgpIHlvdSBhcmUgY2FsbGluZy4%2Ceyebrow_~VnVlVXNlIMK3IExlc3NvbiA1IG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi92dWV1c2UvYXN5bmMtc3RhdGUtYW5kLW5ldHdvcmsi%2Cs_Ewr0hjGcl9J6-DZA.png","@type":["Article","TechArticle"],"articleSection":["Composables"],"author":{"@id":"https://vuejs.school/#identity"},"image":{"@id":"https://vuejs.school/#/schema/image/1"},"isPartOf":{"@id":"https://vuejs.school/learn/vueuse/async-state-and-network#webpage"},"keywords":["useAsyncState()","execute()","until()","useFetch()"],"mainEntityOfPage":{"@id":"https://vuejs.school/learn/vueuse/async-state-and-network#webpage"},"publisher":{"@id":"https://vuejs.school/#identity"}},{"@id":"https://vuejs.school/learn/vueuse/async-state-and-network#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Skill tree","item":"https://vuejs.school/track","position":1},{"@type":"ListItem","name":"VueUse","item":"https://vuejs.school/track/vueuse","position":2},{"@type":"ListItem","name":"Async state and network","position":3}]},{"@id":"https://vuejs.school/#logo","@type":"ImageObject","caption":"vuejs.school","contentUrl":"https://vuejs.school/apple-touch-icon.png","inLanguage":"en","url":"https://vuejs.school/apple-touch-icon.png"},{"@id":"https://vuejs.school/#/schema/image/1","@type":"ImageObject","contentUrl":"https://vuejs.school/_og/d/a_~QXN5bmMgc3RhdGUgYW5kIG5ldHdvcmsgwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Async%2Bstate%2Band%2Bnetwork%2Cdescription_~TGV0IHVzZUFzeW5jU3RhdGUoKSBvd24gdGhlIGxvYWRpbmcsIGVycm9yIGFuZCByYWNlIGhhbmRsaW5nIGZvciBhbnkgcHJvbWlzZSwgd2FpdCBmb3IgYSByZWYgd2l0aCB1bnRpbCgpLCBhbmQga25vdyB3aGljaCB1c2VGZXRjaCgpIHlvdSBhcmUgY2FsbGluZy4%2Ceyebrow_~VnVlVXNlIMK3IExlc3NvbiA1IG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi92dWV1c2UvYXN5bmMtc3RhdGUtYW5kLW5ldHdvcmsi%2Cs_Ewr0hjGcl9J6-DZA.png","inLanguage":"en","url":"https://vuejs.school/_og/d/a_~QXN5bmMgc3RhdGUgYW5kIG5ldHdvcmsgwrcgdnVlanMuc2Nob29s%2Cc_OgCard.takumi%2Ctitle_Async%2Bstate%2Band%2Bnetwork%2Cdescription_~TGV0IHVzZUFzeW5jU3RhdGUoKSBvd24gdGhlIGxvYWRpbmcsIGVycm9yIGFuZCByYWNlIGhhbmRsaW5nIGZvciBhbnkgcHJvbWlzZSwgd2FpdCBmb3IgYSByZWYgd2l0aCB1bnRpbCgpLCBhbmQga25vdyB3aGljaCB1c2VGZXRjaCgpIHlvdSBhcmUgY2FsbGluZy4%2Ceyebrow_~VnVlVXNlIMK3IExlc3NvbiA1IG9mIDY%2Ctint_sand%2Cp_Ii9sZWFybi92dWV1c2UvYXN5bmMtc3RhdGUtYW5kLW5ldHdvcmsi%2Cs_Ewr0hjGcl9J6-DZA.png"}]}
```