Releases: blakeembrey/react-location
Releases · blakeembrey/react-location
Remove `useLayoutEffect`
Remove dead utility
ES2015 Build
Added
- Expose ES2015 build
- Expose
useClick
helper used by<Link />
component
Normalize Slashes
Fixed
- Normalize repeated slashes in the URL for path matching
Remove `to` from `<a />` props
Fixed
- Remove
to
fromwithLink
wrapper forwarded props
Handle context changes
Fixed
- Support context changes in
useRouter
Memoize Location OnChange
Fixed
- Memoize calls to
location.onChange
when the location hasn't changed
Use Router
Added
- Expose router as a React.js hook
- Use
JSX.Element
for children return type
Expose `Link` as HOC
Fixed
- Derp! Overlooked that the exported
Link
should just be usingwithLink
directly
Expose `withLink` HOC
Added
- Expose
withLink
HOC