Module perseus::router

source ·
Expand description

Utilities for working with the router. Note that you should only have to use these when waiting for a page transition in normal use-cases.

Structs

Information about a route, which, combined with error pages and a client-side translations manager, allows the initialization of the app shell and the rendering of a page.
Information about a route, which, combined with error pages and a client-side translations manager, allows the initialization of the app shell and the rendering of a page.
The state for the router. This makes use of RcSignals internally, and can be cheaply cloned.

Enums

The possible outcomes of matching a route in an app.
The possible outcomes of matching a route in an app.
The current load state of the router. You can use this to be warned of when a new page is about to be loaded (and display a loading bar or the like, perhaps).