Skip to content

vue/no-async-in-computed-properties ​

Use watchEffect or an async composable instead of async computed

PropertyValue
CategoryReactivity
Default Severitywarning
Confidencehigh
FixableNo
Engineeslint-template
Sincev1.0.0
Frameworksvue, nuxt

Why it matters ​

Use watchEffect or an async composable instead of async computed

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Computed properties cannot be async. Use watch/watchEffect with a ref, or an async composable, and expose the result.


Rule source: vue/no-async-in-computed-properties

Released under the MIT License.