Skip to content

v3

Compare
Choose a tag to compare
@kyeotic kyeotic released this 03 Nov 03:15
· 22 commits to main since this release

Changed

  • BREAKING:usePath returns decodeURIComponent-ed path
  • BREAKING:useRoutes, useMatch, and usePathParams match paths that have been decodeURIComponent-ed (e.g. /weird (route) will match a path of /weird%20(route))
  • BREAKING: type RouteParams renamed to Routes
  • BREAKING: usePathParams return type now depends on the input params. When a string it returns just the props, when an array it returns [path, props]

Added

  • RouterProvider

Fixed

  • useRoutes function-values to use props type string (was any)