React-router: <Link to="/foo">click me</Link> not dispatch on Redux (@@router/LOCATION_CHANGE)

Created on 11 May 2017  路  5Comments  路  Source: ReactTraining/react-router

When I navigate via browser history buttons, the @@router/LOCATION_CHANGE is dispatched, but when I click on router link (<Link to="/foo">click me</Link>), the redux not is notified.

Version

4.0.0

Test Case

Sorry, I have no put to run with redux integration, but maybe a simple usage, like this with redux installed

Steps to reproduce

Just have a basic app with react + redux + react-router + react-router-redux and try navigate via <Link to="/foo">click me</Link>

Expected Behavior

@@router/LOCATION_CHANGE should be triggered on redux state stack

Actual Behavior

The navigation works, but the redux don't detect the state change

Most helpful comment

Do you have another Router component in the tree somewhere? This definitely works, so it's likely just a usage error.

All 5 comments

Do you have another Router component in the tree somewhere? This definitely works, so it's likely just a usage error.

Nope, is a simple implementation. I will create a clean app to test

@netojose did you solve the problem? I am having the same issue

Nope @kajm , I not solved the problem.
My solution: I not made the react-router-redux integration :(

I had a similar issue when moving from the same state to the same state only with query param change

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexyaseen picture alexyaseen  路  3Comments

winkler1 picture winkler1  路  3Comments

andrewpillar picture andrewpillar  路  3Comments

sarbbottam picture sarbbottam  路  3Comments

yormi picture yormi  路  3Comments