We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517e460 commit 6af24bdCopy full SHA for 6af24bd
modules/mixins/ActiveState.js
@@ -45,6 +45,11 @@ var ActiveState = {
45
return this.context.activeDelegate;
46
},
47
48
+ componentWillMount: function () {
49
+ if (this.updateActiveState)
50
+ this.updateActiveState();
51
+ },
52
+
53
componentDidMount: function () {
54
this.getActiveDelegate().addChangeListener(this.handleActiveStateChange);
55
this.handleActiveStateChange();
@@ -55,7 +60,7 @@ var ActiveState = {
60
56
61
57
62
handleActiveStateChange: function () {
58
- if (this.isMounted() && typeof this.updateActiveState === 'function')
63
+ if (this.isMounted() && this.updateActiveState)
59
64
this.updateActiveState();
65
66
0 commit comments