Skip to content

Commit b721fb6

Browse files
no more old context
1 parent 3d4c59c commit b721fb6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/Coroutine.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export default class Coroutine extends Component {
3838
throw new Error('Coroutine::observe should be implemented by a subclass');
3939
}
4040

41-
forceUpdate(props, context) {
42-
const asyncBody = this.observe(props, context);
41+
forceUpdate(props) {
42+
const asyncBody = this.observe(props);
4343

4444
this.iterator = asyncBody;
4545

@@ -70,17 +70,17 @@ export default class Coroutine extends Component {
7070

7171
componentDidMount() {
7272
this.isComponentMounted = true;
73-
return this.forceUpdate(this.props, this.context);
73+
return this.forceUpdate(this.props);
7474
}
7575

76-
componentWillReceiveProps(nextProps, nextContext) {
76+
componentWillReceiveProps(nextProps) {
7777
if (!isEqual(this.props, nextProps)) {
7878
if (this.iterator && this.iterator.return) {
7979
this.iterator.return();
8080
}
8181

8282
if (this.isComponentMounted) {
83-
this.forceUpdate(nextProps, nextContext);
83+
this.forceUpdate(nextProps);
8484
}
8585
}
8686
}

0 commit comments

Comments
 (0)