fix: disappearing manual props
This commit is contained in:
1 parent
19e6e43358
commit
76581e7400
3 files changed
+20
-1
No files matched your search
@@ -61,7 +61,7 @@ impl Buffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If there's nothing at all, empty optimization
|
// If there's nothing at all, empty optimization
|
||||||
if fields.is_empty() && children.is_empty() {
|
if fields.is_empty() && children.is_empty() && manual_props.is_none() {
|
||||||
opt_level = ShortOptimization::Empty;
|
opt_level = ShortOptimization::Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,4 +31,7 @@ rsx! {
|
|||||||
|
|
||||||
// One level compression
|
// One level compression
|
||||||
div { a { class: "py-2 px-3 bg-indigo-500 hover:bg-indigo-600 rounded text-xs text-white", href: "#", "Send invitation" } }
|
div { a { class: "py-2 px-3 bg-indigo-500 hover:bg-indigo-600 rounded text-xs text-white", href: "#", "Send invitation" } }
|
||||||
|
|
||||||
|
// Components
|
||||||
|
Component { ..Props {} }
|
||||||
}
|
}
|
||||||
@@ -12,3 +12,19 @@ macro_rules! twoway {
|
|||||||
}
|
}
|
||||||
|
|
||||||
twoway!("comments" => comments);
|
twoway!("comments" => comments);
|
||||||
|
|
||||||
|
// rsx! {
|
||||||
|
// div { class: "asdasd", "hello world" }
|
||||||
|
// h1 {
|
||||||
|
// // Important handler
|
||||||
|
// onclick: move |_| {
|
||||||
|
// let a = 10;
|
||||||
|
// },
|
||||||
|
|
||||||
|
// div { "hello" }
|
||||||
|
|
||||||
|
// // Important handler
|
||||||
|
// "Goodbye world"
|
||||||
|
// }
|
||||||
|
// Component {}
|
||||||
|
// }
|
||||||
Reference in new issue
Block a user