question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi! 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:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
iliyaZelenkocommented, Sep 14, 2019

It would be convenient, also interested in this issue. @championswimmer Any plans?

0reactions
sniperadmincommented, Jul 8, 2020

I have documented some approaches to find out the optimum approach in this ticket: https://github.com/sniperadmin/qms-nuxt-ts/issues/17

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found