boring-router-react
Advanced tools
Changelog
[0.5.16-18] - 2023-2-11
beforeEnter()
and beforeUpdate()
hooks of a route service, and passing it to willEnter()
/enter()
and willUpdate()
/update()
hooks.willEnter()
/enter()
and willUpdate()
/update()
hooks.Changelog
[0.4.0] - 2020-7-7
/foo/bar/
as /foo/bar
.Route#$route()
method now accepts a route schema similar to what for a child route except for $match
option.Changelog
[0.3.13] - 2020-7-6
$before/will/afterEnter
, $before/will/afterUpdate
, $before/will/afterLeave
; added $before/will/afterEnterOrUpdate
as shortcut for $before/will/afterEnter
and $before/will/afterUpdate
.$service
.RouteBuilder
.$metadata
support.Router.create()
is removed in favor of new Router().$route()
.fragment
has been changed to segment
./account
, and route account
has $children
, account
will not be matched by default. An option $exact
is added for this scenario, and applies only to route schema with $children
.RouteMatch#$action
has been removed, see hooks for alternatives.RouteMatch#$ref()
, RouteMatch#$push()
, RouteMatch#$replace()
methods is now an option object.preserveQuery
is now removed, but the behavior has changed to preserve query defined with $query
(and its parents).RouteMatch#$beforeEnter
, RouteMatch#$afterLeave
) is now a removal callback.<Redirect>
component has been removed.`