I Am using Vue 3 Composition API and useStore hook from Vuex 4
This is how I am getting data (ids) from vuex store inside setup()
setup () {
const store = useStore()
const allIds = computed(() => store.state.ids)
function printIds () {
console.log(allIds.value)
}
//...
}
Problem is I am not able to use allIds array as it's wrapped in Proxy. This is what I get on console.log(allIds.value) -
When I use this array in templates it works fine, but I want to use this data as payload for another action dispatch inside component using 1 of the ids from array. How can I do that? All examples I found are for using store data in templates.
Thanks.