Skip to main content

All Questions

1 vote
1 answer
855 views

Can't get data from a composable using destructuring in Vue 3

I'm trying to get books data from firebase in the Vue component (Book.vue). It works fine when I write a the function inside the component. But it doesn't work when I try to convert it into a ...
IndabCoding's user avatar
0 votes
1 answer
2k views

Dynamic axios request url in Vue 3 Composables

I've tried this and it worked: const posts = ref{[]} const urlEndPoint = 'posts' const getPosts = async () => { let response = await axios.get('/api/'+urlEndPoint) ...
Daddi Al Amoudi's user avatar