Skip to content

Commit

Permalink
Fix React Router not updating routes
Browse files Browse the repository at this point in the history
  • Loading branch information
kpuputti committed Apr 3, 2017
1 parent 5d32f57 commit a3b25b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ Routes.propTypes = {

const mapStateToProps = state => ({ isAuthenticated: state.Auth.isAuthenticated });

export default compose(connect(mapStateToProps), withRouter, withFlattenedRoutes)(Routes);
export default compose(withRouter, connect(mapStateToProps), withFlattenedRoutes)(Routes);

0 comments on commit a3b25b0

Please sign in to comment.