How to share a global state in Route
pages
#3067
-
#[derive(Routable, PartialEq, Clone)]
enum Route {
#[route("/")]
#[route("/login")]
LoginWindow {},
#[route("/register")]
RegisterWindow {},
#[route("/main")]
MainWindow {},
} I want to share some global state in these windows, what should I do |
Beta Was this translation helpful? Give feedback.
Answered by
ryo33
Oct 18, 2024
Replies: 1 comment
-
How about https://docs.rs/dioxus/0.6.0-alpha.3/dioxus/prelude/type.GlobalSignal.html |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
miaomiaowu0428
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How about https://docs.rs/dioxus/0.6.0-alpha.3/dioxus/prelude/type.GlobalSignal.html