nuxt instance unavailable during fetch data
after ugrade from 3.0.0 to 3.3.2 l have a problem with fetch data in pinia store ( lm using setup store type)
trackbase
its my pages code:
method in pinia:
$sdk is my module where hold useApi composable based on useFetch
any ideas with this error?
5 Replies
aah and its getProductOpinion method
any solutions? 🥺
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
GitHub
Document composables concept · Issue #14723 · nuxt/nuxt
Nuxt 3 uses Vue 3 with Composition API and unjs/unctx for supporting composables with the implicit context in nuxtApp (plugins, middleware) and nuxt kit too. However, there are many cases in this n...
l had two case
one when request was nasted in pinia store method ( setup setting)
and solved it by move getProductOpinion to try catch in page vue
secound case is move try catch from function getCourse() to try catch in script setup root
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View