Route segment params.
A Route is an array of route segments.
A function that creates a RouteSegment with optional params.
the current route, for example state.route.current
.
the route segment index. This is used internally and you should not specify a value for this parameter.
Creates a Route
helper with functions to create route segments.
the list of route names.
a Route
object with constructor functions.
Calculates the difference between two routes.
the route representing the segments that are in the from
route but not in the to
route.
Looks for a Route segment, regardless of the params, in a route.
the route to search.
the route segment, or just the id of the route segment, to search for in the route.
the matching Route segment, or undefined
if route
is empty or a route segment with
the given id was not found.
Looks for a route segment, with matching params, in a route.
the route to search.
the route segment to search for in the route.
the matching Route segment, or undefined
if route
is empty or the route segment
was not found.
Calculates route transitions, providing leave
, arrive
, and params
to indicate the route
segments for the route that we are leaving, the route to which we are arriving, and the route
for which params have changed, respectively.
the current route, before navigation.
the route to which we are navigating.
an object with leave
, arrive
, and params
properties.
Calls a function with a value only if the value is not null
or undefined
.
the value to check.
the function to call if value
is present.
the result of calling fn(value)
, or null
if value
is absent.
Generated using TypeDoc
meiosis-routing/state
The
state
module contains functions for managing routes in the application state.state