简体   繁体   中英

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:

App.js:

<Routes>
    <Route path="/" element={<Home />} />
    <Route path="users/*" element={<Users />} />
</Routes>

In 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

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 中得到修复。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM