vue/no-watch-after-await
disallow asynchronously registered
watch
- ⚙️ This rule is included in the following preset configs:
*.configs["flat/essential"]*.configs["flat/strongly-recommended"]*.configs["flat/recommended"]"plugin:vue/essential""plugin:vue/strongly-recommended""plugin:vue/recommended"
📖 Rule Details
This rule reports the watch() after await expression.
In setup() function, watch() should be registered synchronously.
This rule is not reported when using the stop handle.
🔧 Options
Nothing.
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v7.0.0