npm react-router-dom 6.1.0
v6.1.0

latest releases: 6.24.1, 0.0.0-nightly-520ab610e-20240703, 0.0.0-experimental-ecd35cd60...
2 years ago

🐛 Bug fixes

  • Fixed a bug that broke support for base64 encoded IDs on nested routes (#8291)

✨ Features

  • <Outlet> can now receive a context prop. This value is passed to child routes and is accessible via the new useOutletContext hook. See the API docs for details. (#8461)
  • <NavLink> can now receive a child function for access to its props. (#8164)

💅 Enhancements

  • Improved TypeScript signature for useMatch and matchPath. For example, when you call useMatch("foo/:bar/:baz"), the path is parsed and the return type will be PathMatch<"bar" | "baz">. (#8030)
  • A few error message improvements (#8202)

New Contributors

Full Changelog: v6.0.1...v6.1.0

Don't miss a new react-router-dom release

NewReleases is sending notifications on new releases.