File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments