nuxt-community / axios-module

Secure and easy axios integration for Nuxt 2
https://axios.nuxtjs.org
MIT License
1.19k stars 246 forks source link

loading start never call #519

Closed Gu3 closed 3 years ago

Gu3 commented 3 years ago

Hi ! It's seems that's the start method of the loading bar was never called, only the finish or fail method. I made a custom loading bar, but It's seems the same for a traditional loading bar

for example :

<template>
  <v-overlay :value="loading" class="loading-page">
    <v-progress-circular
      indeterminate
      size="64"
    ></v-progress-circular>
  </v-overlay>
</template>

<script>
  export default {
    data: () => ({
      loading: false
    }),
    methods: {
      set(){
      --- Edit : that's work ---- 
      this.loading = true
      --- Edit ---- 
        return true
      },
      start() {
        console.log('ok')
        this.loading = true
      },
      finish() {
        console.log('ko')
        this.loading = false
      }
    }
  }
</script>

"OK" was never printed, but "KO" was... Do I miss some point ? Thanks you !

Gu3 commented 3 years ago

My bad, I didn't see the set method... Maybe some documentation about it would be interesting :) Cheers.