Skip to content

Commit 0af94a0

Browse files
committed
Clarify type check
1 parent 433c3f1 commit 0af94a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mixins/AsyncState.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var AsyncState = {
9494
},
9595

9696
componentDidMount: function () {
97-
if (this.props.initialAsyncState || !this.constructor.getInitialAsyncState)
97+
if (this.props.initialAsyncState || typeof this.constructor.getInitialAsyncState !== 'function')
9898
return;
9999

100100
resolveAsyncState(

0 commit comments

Comments
 (0)