Skip to content
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

Warning: You cannot PUSH the same path using hash history #4

Closed
Aneeskhan opened this issue Dec 18, 2015 · 3 comments
Closed

Warning: You cannot PUSH the same path using hash history #4

Aneeskhan opened this issue Dec 18, 2015 · 3 comments

Comments

@Aneeskhan
Copy link

if i click again on same route Link this happen any suggestion?

i read your comments on remix-run/history#43
and on
remix-run/history#178
but unable to figure out solution
any suggestion to fix this?

@taion
Copy link
Owner

taion commented Dec 18, 2015

This got fixed by the relevant history changes to replace the PUSH with a REPLACE.

@taion taion closed this as completed Dec 18, 2015
@Aneeskhan
Copy link
Author

any example code? or where to change ?
i have try this one
if (nextPath === prevPath && deepEqual(location.state, nextLocation.state))
nextLocation.action = REPLACE
but still warning in console

@taion
Copy link
Owner

taion commented Dec 18, 2015

Wait for the history upgrade on the React Router side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants