-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugSomething isn't workingSomething isn't workingfullstackrelated to the fullstack craterelated to the fullstack crate
Description
Problem
The following example breaks hydration in the 0.6 and git version of dioxus
use dioxus::prelude::*;
fn main() {
dioxus::launch(|| {
rsx! {
Comp {}
Comp {}
Button {}
}
});
}
#[component]
fn Button() -> Element {
let mut count = use_signal(|| 0);
rsx! {
button {
onclick: move |_| {
count += 1;
},
"Count: {count}"
}
}
}
#[component]
fn Comp(#[props(extends = GlobalAttributes)] attributes: Vec<Attribute>) -> Element {
rsx! {
div {
width: 100,
div {
..attributes,
}
}
}
}
Expected behavior
The example should run correctly
Environment:
- Dioxus version: main
- Rust version: nightly
- OS info: MacOS
- App platform: Web
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfullstackrelated to the fullstack craterelated to the fullstack crate