partially restore spreading attributes
This commit is contained in:
1 parent
2470a46511
commit
36e9eb1160
19 files changed
+252
-194
No files matched your search
@@ -7,7 +7,7 @@ use dioxus_core::ElementId;
|
||||
#[test]
|
||||
fn empty_fragment_creates_nothing() {
|
||||
fn app() -> Element {
|
||||
render!(())
|
||||
render!({ () })
|
||||
}
|
||||
|
||||
let mut vdom = VirtualDom::new(app);
|
||||
@@ -55,7 +55,7 @@ fn fragments_nested() {
|
||||
}}
|
||||
}}
|
||||
}}
|
||||
))
|
||||
)
|
||||
});
|
||||
|
||||
assert_eq!(
|
||||
@@ -77,10 +77,7 @@ fn fragments_across_components() {
|
||||
|
||||
fn demo_child() -> Element {
|
||||
let world = "world";
|
||||
render! {
|
||||
"hellO!"
|
||||
{world}
|
||||
}
|
||||
render! { "hellO!", {world} }
|
||||
}
|
||||
|
||||
assert_eq!(
|
||||
|
||||
Reference in new issue
Block a user