Skip to content

Commit

Permalink
Hot fix from: facebook#17348
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkasm committed Dec 26, 2017
1 parent 5f3f3d4 commit 0b43a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/Components/Subscribable.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ var Subscribable = {};

Subscribable.Mixin = {

componentWillMount: function() {
componentDidMount: function() {
this._subscribableSubscriptions = [];
},

componentWillUnmount: function() {
this._subscribableSubscriptions.forEach(
this._subscribableSubscriptions && this._subscribableSubscriptions.forEach(
(subscription) => subscription.remove()
);
this._subscribableSubscriptions = null;
Expand Down

0 comments on commit 0b43a22

Please sign in to comment.