Skip to content

Commit

Permalink
fix Redux integration desynchronizing internal state (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored and rgommezz committed Sep 3, 2018
1 parent 7aa425e commit d61900c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/withNetworkConnectivity.js
Expand Up @@ -134,10 +134,9 @@ const withNetworkConnectivity = (
store.dispatch(action);
});
}
} else {
// Standard HOC, passing connectivity as props
this.setState({ isConnected });
}

this.setState({ isConnected });
};

render() {
Expand Down

0 comments on commit d61900c

Please sign in to comment.