[Vuejs]-How to get state in Nuxt js with composition api?

0👍

Can you test it? sample:

const state = reactive({ columns: computed(() => yourstore })
// do not need to call fetch because this hook is a function
useFetch(async () => { await store.dispatch(url) })
return {
  ...toRefs(state),
}

Leave a comment