Skip to content

Commit 660ac59

Browse files
fix stupid mistake
1 parent 37506f7 commit 660ac59

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## react-coroutine v1.0.4
22

33
* Fix the issue with redundant updates due to late props comparison
4+
* Fix broken reference to the current props state
45

56
## react-coroutine v1.0.3
67

modules/CoroutineRender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class AsyncComponent extends Component {
5050
}
5151

5252
componentWillReceiveProps(nextProps, nextContext) {
53-
if (!isEqual(this, nextProps)) {
53+
if (!isEqual(this.props, nextProps)) {
5454
if (this.iterator && this.iterator.return) {
5555
this.iterator.return();
5656
}

0 commit comments

Comments
 (0)