Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

Commit 1ffdcef

Browse files
committed
Simplify isLazy function
1 parent 55eef6c commit 1ffdcef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fetch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export class Fetch extends React.Component {
7474

7575
// We default to being lazy for "write" requests,
7676
// such as POST, PATCH, DELETE, and so on.
77-
isLazy = props => {
78-
const { lazy, method } = props || this.props;
77+
isLazy = () => {
78+
const { lazy, method } = this.props;
7979

8080
return typeof lazy === 'undefined' ? !this.isReadRequest(method) : lazy;
8181
};

0 commit comments

Comments
 (0)