Skip to content

Releases: blakeembrey/react-route

Faster Routes

05 Apr 23:06

Choose a tag to compare

Changed

  • Use <Route component /> to render components going forward, avoids re-rendering when parameters don't change

Component Prop

05 Apr 23:05

Choose a tag to compare

Changed

  • Use component prop on Route to minimize the number of re-renders of child elements
  • Remove re-use of React Location context, initialize a separate context for routes

Propagate hash and search changes

27 Mar 22:28

Choose a tag to compare

Fixed

  • Propagate hash and search changes to child routes

Path-To-Regexp 6

22 Nov 06:43

Choose a tag to compare

Changed

  • Upgrade path-to-regexp@6

Latest Path-To-RegExp

12 Nov 23:20

Choose a tag to compare

Changed

  • Upgraded path-to-regexp
  • Removed <Match /> and <UseRoute /> components, prefer useMatch and <Route end={false} />

Expose `useMatch`

17 Apr 06:32

Choose a tag to compare

Added

  • With the addition of useRouter in @blakeembrey/react-location, expose useMatch to match with path-to-regexp

Declarative `<Switch />`

17 Apr 06:31

Choose a tag to compare

Changed

  • Remove implicit magic around changing Route children during render and matching first only, rely on declarative <Switch /> for explicit behavior

Proxy Format Location

09 Apr 04:58

Choose a tag to compare

Fixed

  • Forward requests to format the URL to parent router

Better Redirect Handling

17 Feb 22:10

Choose a tag to compare

Changed

  • Improved route child signature to avoid passing url and location as two separate params - just destructure from { url } instead

Fixed

  • Better URL redirection handling of nested routes, avoids overhead of re-creating LocationRoute

Latest React.js

09 Feb 23:58

Choose a tag to compare

Fixed

  • Fix changes in latest react release with stable hooks