[英]React router v6.0.0-beta.5
I update my react router from v6.0.0-beta.0 to v6.0.0-beta.5, And when using nested routers like this:我将我的反应路由器从 v6.0.0-beta.0 更新到 v6.0.0-beta.5,并且当使用这样的嵌套路由器时:
App.js:应用程序.js:
<Routes>
<Route path="/" element={<Home />} />
<Route path="users/*" element={<Users />} />
</Routes>
In Users.js在 Users.js 中
<Routes>
<Route path="me" element={<Me />} />
<Route path="all" element={<All />} />
</Routes>
In the v6.0.0-beta.0 everything worked well after my update to v6.0.0-beta.5 when I click on my Link(me or all) first time it work after the first click I get something like that: http://localhost:3001/users/me/me/all/all/all在 v6.0.0-beta.0 中,在我更新到 v6.0.0-beta.5 后,当我第一次单击我的链接(我或所有)时一切正常,第一次单击后我得到类似的东西:http: //本地主机:3001/users/me/me/all/all/all
I cant understand if this is a bug from the update or maybe something changed in the update and I am doing something wrong我不明白这是更新中的错误还是更新中的某些内容发生了变化,我做错了什么
这看起来在 v6.0.0-beta.7 中得到修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.