[Vuejs]-Hot to handle async props in vue 3 composition API

0πŸ‘

βœ…

I don’t see in your code any await. Use await instead of .then!

<script setup>
const { getGroup, removePubli, removeTablet, loadTotal, error } = useGroups();

const group = ref({})

const result = await getGroup(someId)

group.value = result.data // or what ever
</script>

Leave a comment