Skip to content

Commit 7ce2bb9

Browse files
committed
isLoading → isFetching.
1 parent 9b0630f commit 7ce2bb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/recipes/ReducingBoilerplate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class Posts extends Component {
215215
}
216216

217217
render() {
218-
if (this.props.isLoading) {
218+
if (this.props.isFetching) {
219219
return <p>Loading...</p>;
220220
}
221221

@@ -297,7 +297,7 @@ class Posts extends Component {
297297
}
298298

299299
render() {
300-
if (this.props.isLoading) {
300+
if (this.props.isFetching) {
301301
return <p>Loading...</p>;
302302
}
303303

0 commit comments

Comments
 (0)