2.0.6 • Published 2 years ago

axios-repeat-abandon v2.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

axios-repeat-abandon

Cancel axios repeated request

English | 简体中文

Installing

npm install axios-repeat-abandon

Usage

import axios from 'axios'
import axiosRepeatAbandon from 'axios-repeat-abandon'

axiosRepeatAbandon(axios,{
  time: 800
  openSwitch: true
})
  var http = axios.create()
  Object.setPrototypeOf(http, axios)
  AxiosRepeatAbandon(http,{
    time: 400
  });

config

  • time: Identified as the number of milliseconds repeat request, default time 800 millisecond
  • openSwitch: Whether to enable the repeated request limit, the total configuration, the default is true to enable, a single request can override the global configuration, that is, the following example

example

Remove the duplicate request limit for this request

  axios.get(url,{
    cancelRepeat: false
  })
2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

1.0.11

2 years ago

2.0.1

2 years ago

1.0.10

2 years ago

2.0.0

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago