Using composable in hooks #29
damienroche
started this conversation in
General
Replies: 2 comments 2 replies
-
|
Met the same issue. Actually you can use |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
@damienroche Did you try moving |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to know the right way to use rstore with composables in a Nuxt project.
In my case I have an axios plugin which use some composables for authentication and other logic.
plugins/axios.tsand I would like to use it into my rstore plugin
It seems to work as data is fetched, but in my console I see error :
A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug. at Module.useNuxtApp at rstore/plugins/api.tsIs there a sort of plugin order load issue for this case ?
Beta Was this translation helpful? Give feedback.
All reactions