Skip to content

Commit 27bb5db

Browse files
authored
Fix isCancel missing using custom axios instance
1 parent 2f049f7 commit 27bb5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Request extends React.Component {
8686
if (!this._mounted) {
8787
return
8888
}
89-
if (!_axios.isCancel(err)) {
89+
if (!axios.isCancel(err)) {
9090
this.setState({ isLoading: false, response: err.response, error: err })
9191
if (typeof this.props.onError === 'function') {
9292
this.props.onError(err)

0 commit comments

Comments
 (0)