Skip to content

Commit

Permalink
remove _isMounted (#1338)
Browse files Browse the repository at this point in the history
it is not doing anything
  • Loading branch information
Egor Egorov authored and timdorr committed Jun 22, 2019
1 parent 8e08fc8 commit 7b44e33
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/Provider.js
Expand Up @@ -22,8 +22,6 @@ class Provider extends Component {
}

componentDidMount() {
this._isMounted = true

this.state.subscription.trySubscribe()

if (this.previousState !== this.props.store.getState()) {
Expand All @@ -35,8 +33,6 @@ class Provider extends Component {
if (this.unsubscribe) this.unsubscribe()

this.state.subscription.tryUnsubscribe()

this._isMounted = false
}

componentDidUpdate(prevProps) {
Expand Down

0 comments on commit 7b44e33

Please sign in to comment.