Skip to content

Commit

Permalink
docs(eagerComputed): Add correct console.log output (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
J3m5 committed Nov 26, 2021
1 parent fb7cd78 commit 5391aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/eagerComputed/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { eagerComputed } from '@vueuse/core'
const todos = ref([])
const hasOpenTodos = eagerComputed(() => !!todos.length)

console.log(hasOpenTodos.value) // 0
console.log(hasOpenTodos.value) // false
toTodos.value.push({ title: 'Learn Vue' })
console.log(hasOpenTodos.value) // 1
console.log(hasOpenTodos.value) // true
```

0 comments on commit 5391aad

Please sign in to comment.