New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How disable Integrated with Nuxt.js Progressbar for some request #112

Closed
cawa-93 opened this Issue Mar 3, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@cawa-93
Contributor

cawa-93 commented Mar 3, 2018

I need to disable integration with the progress bar, for one method, because it runs a lot of sequential queries.

async loaderMethod(params) {
  for (let i = 0; i<100; i++) {
    await this.$axios.$get('URL', {params}, {
      progress: false, // Disable integration with the progress bar specifically for this query
    })
    this.$nuxt.$loading.set(i) // Change the progress bar status manually
  }
}

<!--cmty--><!--cmty_prevent_hook-->
<div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt-community/axios-module/issues/c97">#c97</a>)</em></sub></div>

@cawa-93 cawa-93 changed the title from Disable Integrated with Nuxt.js Progressbar for some request to How disable Integrated with Nuxt.js Progressbar for some request Mar 3, 2018

@pi0 pi0 added the enhancement label Mar 5, 2018

@pi0

This comment has been minimized.

Member

pi0 commented Mar 5, 2018

Thanks for the suggestion. Will be possible in next release using:

this.$axios.$get('URL', { progress: false })

@pi0 pi0 closed this in 1530bb6 Mar 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment