Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e4dde2

Browse files
docs(no-async-in-computed-properties): suggest computedAsync instead of vue-async-computed (#2976)
1 parent 083aafe commit 9e4dde2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ since: v3.8.0
1212
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

15-
Computed properties and functions should be synchronous. Asynchronous actions inside them may not work as expected and can lead to an unexpected behaviour, that's why you should avoid them.
16-
If you need async computed properties you might want to consider using additional plugin [vue-async-computed]
15+
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, 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)

AltStyle によって変換されたページ (->オリジナル) /