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>
Source:stackexchange.com