🐛 Bugfixes
- Fixed a bug that broke paths in nested routes
- Adds missing
displayName
back to<Link />
and<NavLink />
components
✨ Enhancements
- The
navigate
function now prepends hash and search strings by default:navigate({ search: "?foo=1&bar=2" }); // this works as expected! navigate({ search: "foo=1&bar=2" }); // this also works!
useParams
now returns parameters from nested<Route />
s when called in a parent<Route />
💻 Installing
Development for v6 is chugging along on the dev
branch.
If you'd like to test it out, install from npm:
$ npm install history react-router-dom@next
🙏 Credits
Thanks to @liho98, @wojtekmaj, @cravend, @chaance and @mjackson for your contributions!
Enjoy!