File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ ## react-coroutine v1.0.2
2+
3+ * Fix compatibility issue with polyfilled Promises
4+
15## react-coroutine v1.0.1
26
37 * Fix the usage of ` contextTypes ` for async functions
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default class AsyncComponent extends Component {
1818
1919 this . iterator = asyncBody ;
2020
21- if ( asyncBody instanceof Promise ) {
21+ if ( typeof asyncBody . then === 'function' ) {
2222 asyncBody . then ( body => {
2323 if ( this . isComponentMounted && this . iterator === asyncBody ) {
2424 this . setState ( ( ) => ( { body, variables } ) ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " react-coroutine" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " React Components as Coroutines" ,
55 "main" : " lib/Coroutine.js" ,
66 "module" : " modules/Coroutine.js" ,
You can’t perform that action at this time.
0 commit comments