Skip to content

Commit a1ec63f

Browse files
committed
Update
1 parent 8658b76 commit a1ec63f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# [V3.3.0-alpha](https://github.com/nxtexe/react-motion-router/blob/main/CHANGELOG.md#v330-alpha)
2+
## Features
3+
- new `useNavigation` hook for accessing the navigation object anywhere in your component tree.
4+
5+
## Enhancements
6+
- Changed the location property on the navigation object to better reflect the capabilities of the navigation object rather than the global location object defined on window. This means you can still use methods like `'assign'`, `'replace'` etc. but under the hood they will now use the navigation primitives provided by the navigation object. For you this will mean you get smooth transitions even when using methods like replace on `navigation.location`.
7+
- The search part of `navigation.location` will now mirror the current screen's params.
8+
- The `Anchor` component has been changed to more cloesly mirror the HTML `a` tag. You can pass route name strings or fully qualified URLs to its href prop. In the latter case it will behave as a normal link if and only if the origin that it points to is not the same as the app's origin. You can also pass route params directly to the component as an object to the optional params prop. These params will be automatically serialised and appended as the search part of the URL.
9+
110
# [V3.0.0-alpha](https://github.com/nxtexe/react-motion-router/blob/main/CHANGELOG.md#v300-alpha)
211
# Breaking Changes
312
#### We've upgraded to React 18! 🎉

0 commit comments

Comments
 (0)