Redux: Connect breaks react router 4

Created on 19 Jun 2017  ·  1Comment  ·  Source: reduxjs/redux

I have a basic App component that uses a HashRouter. As soon as I wrap that with connect routing no longer works: any attempt to change the route will not trigger a render. Here is a small codepen demonstrating the problem. For the test I used a trivial connect call:

App = connect(
  () => ({}),
)(App)

If I comment out those lines routing works correctly.

Relevant versions:

  • React 15.4.2
  • Redux 3.7.0
  • React redux 5.0.5
  • React router 4.1.1

Verified with Safari and Chrome.

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vslinko picture vslinko  ·  3Comments

benoneal picture benoneal  ·  3Comments

dmitry-zaets picture dmitry-zaets  ·  3Comments

vraa picture vraa  ·  3Comments

caojinli picture caojinli  ·  3Comments