Release 0.2.0 - 2026-09-26

This release completes support for route params, and makes a route's model available to its view.

Read the full change log here.

Route params and models

When a Leptos view is generated for an Auric route, it now captures the parameters from the Leptos router, and passes them along to the Auric router, which now tracks the latest route parameters for the current route, and all its parent routes, if any.

When the Auric router's model_for(route_name) fn is called, it now asks the router for the route params before invoking the route handler's model() fn.

$ cat src/generated/views/customers.rs
#[component]
pub fn CustomersView() -> impl IntoView {
    let model = LocalResource:: new(async move || {
        let params = move || use_params_map().get();
        router.set_params_for("customers", params().into());
        router.model_for("customers").await
    };
    view! {
        ...
    }
}

©2026 Megalithic LLC | Website | Guide | GitLab | Contact