Axios-module: How disable Integrated with Nuxt.js Progressbar for some request

Created on 3 Mar 2018  路  4Comments  路  Source: nuxt-community/axios-module

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

This feature request is available on Nuxt.js community (#c97)
enhancement

Most helpful comment

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

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

All 4 comments

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

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

How to use it? I am trying to do but don't know where to call it. Thanks

Any updates here?

Works, but is currently broken due to axios. See #258 for more

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simllll picture simllll  路  6Comments

monty086 picture monty086  路  3Comments

artmarydotir picture artmarydotir  路  4Comments

SniffAByte picture SniffAByte  路  6Comments

lyzs90 picture lyzs90  路  4Comments