import axios from 'axios'
const axiosHandle = axios.CancelToken.source()
login(){
this.props.dispatch(getData(value, (res) => {},(error)=>{},axiosHandle)
setTimeout(() => {
axiosHandle.cancel('cancel request')
}, 3000)
}
import axios from 'axios'
const axiosHandle = axios.CancelToken.source()
login(){
this.props.dispatch(getData(value, (res) => {},(error)=>{},axiosHandle)
setTimeout(() => {
axiosHandle.cancel('cancel request')
}, 3000)
}