Crate sycamore_router
source · [−]Expand description
The Sycamore Router.
Structs
A router integration that uses the HTML5 History API to keep the UI in sync with the URL.
Props for Router
.
Props for StaticRouter
.
Enums
Represents a capture of an URL segment or segments.
Represents an URL segment or segments.
Traits
A router integration provides the methods for adapting a router to a certain environment (e.g. history API).
Trait that is implemented for enum
s that can match routes.
Fallible conversion between a param capture into a value.
Fallible conversion between a list of param captures into a value.
Functions
The sycamore router component. This component expects to be used inside a browser environment.
For server environments, see StaticRouter
.
A router that only renders once with the given route
.
Navigates to the specified url
. The url should have the same origin as the app.
Navigates to the specified url
without adding a new history entry. Instead, this replaces the
current location with the new url
. The url should have the same origin as the app.
Derive Macros
The Route
procedural macro.