github remix-run/react-router v6.1.0

latest releases: react-router@6.24.1, react-router-native@6.24.1, react-router-dom@6.24.1...
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 release

NewReleases is sending notifications on new releases.