v3.3.0-alpha
absurdprofit
released this
22 Apr 20:33
·
233 commits
to main
since this release
V3.3.0-alpha
Features
- new
useNavigation
hook for accessing the navigation object anywhere in your component tree.
Enhancements
- Changed the location property on the navigation object to better reflect the capabilities of the navigation object rather than the 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 itself. For you this will mean you get smooth transitions even when using methods like replace onnavigation.location
. - The search part of
navigation.location
will now mirror the current screen's params. - The
Anchor
component has been changed to more cloesly mirror the HTMLa
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.