Skip to content

Commit 7024026

Browse files
docs: suggest computedAsync instead of 'vue-async-computed'
1 parent 02dfb92 commit 7024026

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/no-async-in-computed-properties.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ since: v3.8.0
1313
- :gear: This rule is included in all of `"plugin:vue/essential"`, `*.configs["flat/essential"]`, `"plugin:vue/vue2-essential"`, `*.configs["flat/vue2-essential"]`, `"plugin:vue/strongly-recommended"`, `*.configs["flat/strongly-recommended"]`, `"plugin:vue/vue2-strongly-recommended"`, `*.configs["flat/vue2-strongly-recommended"]`, `"plugin:vue/recommended"`, `*.configs["flat/recommended"]`, `"plugin:vue/vue2-recommended"` and `*.configs["flat/vue2-recommended"]`.
1414

1515
Computed properties and functions should be synchronous. Asynchronous actions inside them may not work as expected and can lead to unexpected behaviour; that's why you should avoid them.
16-
If you need async computed properties, you might want to consider using an additional plugin such as [vue-async-computed]
16+
If you need async computed properties, consider using the [`computedAsync`] composable from VueUse.
1717

1818
## :book: Rule Details
1919

@@ -147,9 +147,9 @@ const fetchData = computed(() => {
147147

148148
## :books: Further Reading
149149

150-
- [vue-async-computed]
150+
- [`computedAsync`]
151151

152-
[vue-async-computed]: https://github.com/foxbenjaminfox/vue-async-computed
152+
[`computedAsync`]: https://vueuse.org/core/computedAsync
153153

154154
## :rocket: Version
155155

0 commit comments

Comments
 (0)