Skip to content

Commit

Permalink
docs(until): fix outdated variable name (#2146)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle1an committed Aug 31, 2022
1 parent 05fe317 commit 4db75ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/until/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Promised one-time watch for changes
```js
import { until, useAsyncState } from '@vueuse/core'

const { state, ready } = useAsyncState(
const { state, isReady } = useAsyncState(
fetch('https://jsonplaceholder.typicode.com/todos/1').then(t => t.json()),
{},
)

;(async () => {
await until(ready).toBe(true)
await until(isReady).toBe(true)

console.log(state) // state is now ready!
})()
Expand Down

0 comments on commit 4db75ab

Please sign in to comment.