leptos_reactive_axum_macros

Crates.ioleptos_reactive_axum_macros
lib.rsleptos_reactive_axum_macros
version1.0.0
sourcesrc
created_at2024-06-15 09:45:18.210471
updated_at2024-07-05 08:22:15.458061
descriptionreactive context for axum handlers
homepage
repositoryhttps://git.davidon.top/public/leptos_reactive_axum.git
max_upload_size
id1272702
size4,585
(davidon-top)

documentation

https://docs.rs/leptos_reactive_axum_macros

README

whoami

Library providing utilities for using leptos_reactive runtime inside axum handlers. Also automaticly uses provide_context to make the request Parts available inside any function called by the handler.

But why?

When using something like the rstml-component crate it is usefull to be able to extract anything from parts inside any component. For example inside nav bar extract the path to be able to highlight active route. Additionally you can create a middleware layer that can add to the context things like IsLoggedIn or other information about the request that is used within more then one function/component called by the handler.

Commit count: 0

cargo fmt