Created
October 24, 2016 16:31
-
-
Save timdorr/717351653e97f9c4749d4b54f68f4b97 to your computer and use it in GitHub Desktop.
Requesting a subscription to fire at a later time
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
class Thing extends Component { | |
componentWillMount() { | |
this.subscriptionRequest = registerSubscriber(this.handleUpdate) | |
} | |
componentDidMount() { | |
startListening(this.subscriptionRequest) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment