Skip to content

Why is LOCATION_CHANGE action too lazy when I use go back or forward button in browser #5804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
w4-geonhokim opened this issue Dec 20, 2017 · 1 comment

Comments

@w4-geonhokim
Copy link

w4-geonhokim commented Dec 20, 2017

My version of
react-router: 5.0.6
react-router-redux: 5.0.0-alpha.6

I have code to move from a page to the other page with onClick=history.push() event in tr element. When I click the tr element, then it works fine. LOCATION_CHANGE is called fast enough.

However, if I use history back or forward button in browser, LOCATION_CHANGE action is even slower than rendering.

Below is captured image in my console.

When I just use onClick event in tr element:
2017-12-20 3 54 39

When I use go back and go forward button in browser:
2017-12-20 3 55 00
That 'null' is match.

I'm wondering the reason. Thank you.

@timdorr
Copy link
Member

timdorr commented Dec 20, 2017

Duplicate of #5072

@timdorr timdorr marked this as a duplicate of #5072 Dec 20, 2017
@timdorr timdorr closed this as completed Dec 20, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants