Pattern: Use of expose()
after await
Issue: -
Reports the expose()
after await
expression. In setup()
function, expose()
should be registered synchronously.
<script>
import { watch } from 'vue'
export default {
async setup(props, { expose }) {
/* ✓ GOOD */
expose({/* ... */})
await doSomething()
/* ✗ BAD */
expose({/* ... */})
}
}
</script>