Last active
August 29, 2015 14:20
-
-
Save cassiozen/2cda15d5bf9e4bff06c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidMount: function() { | |
// Instead of TodoStore.addChangeListener(this._onChange); | |
TodoStore.addListener(StoreConstants.CHANGE, this._onChange); | |
}, | |
componentWillUnmount: function() { | |
// Instead of TodoStore.removeChangeListener(this._onChange); | |
TodoStore.removeListener(StoreConstants.CHANGE,this._onChange); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment