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

同一个菜单项,比如“首页”,连续点击第二次会报警告 #32

Closed
tryrefine opened this issue Dec 23, 2017 · 1 comment

Comments

@tryrefine
Copy link

Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack

@tryrefine tryrefine changed the title 菜单点击连续点击第二次会报警告 同一个菜单项,比如“首页”,连续点击第二次会报警告 Dec 23, 2017
@yezihaohao
Copy link
Owner

这个是reactr-router的一个提示,当前路由下的history不能push相同的路径。只有开发环境存在,生产环境不存在,目前还没看到官方有去掉的意思。看不惯的话可以采取一些方法关掉这个提示。具体可以参考remix-run/react-router#4467

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