Nuxt Context
See original GitHub issueHi! I would like to use this library together with Nuxt. I tried, but the only issue I’m having is that this
does not include the Nuxt context
. I specifically need it so i can use the $axios
instance from Nuxt within the Vuex module.
Is it possible to inject or use the Nuxt context into the Vuex module?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:10
- Comments:5 (1 by maintainers)
Top Results From Across the Web
The context - Nuxt
The context provides additional objects/params from Nuxt to Vue components and is available in special nuxt lifecycle areas like asyncData , fetch ,...
Read more >Working with context, helpers, and advanced properties in ...
The Nuxt context is an additional collection of data about the current request to the application that is available in Nuxt Lifecycle Hooks....
Read more >API: The Context - Nuxt.js
Key Type Available
app Root Vue Instance Client & Server
isClient Boolean Client & Server
isServer Boolean Client & Server
Read more >Accessing context from this - nuxt.js - Stack Overflow
I have a middleware that exports context.
Read more >How to use the nuxt context in an vuex store? - Storyblok
Using the current Nuxt context and therefore $storyapi and $storybridge the easiest way to achieve that is to pass the parts of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It would be convenient, also interested in this issue. @championswimmer Any plans?
I have documented some approaches to find out the optimum approach in this ticket: https://github.com/sniperadmin/qms-nuxt-ts/issues/17