add this function:
componentWillUnmount() {
... // cancel all subscriptions
}