fix more errors in core tests
This commit is contained in:
1 parent
8d783490a0
commit
a9d09d858b
20 files changed
+84
-155
No files matched your search
@@ -5,11 +5,7 @@ fn main() {}
|
||||
fn app() -> Element {
|
||||
let count: &RefCell<Vec<Element>> = cx.use_hook(|| RefCell::new(Vec::new()));
|
||||
|
||||
render! {
|
||||
unsafe_child_component {
|
||||
borrowed: count
|
||||
}
|
||||
}
|
||||
render! { unsafe_child_component { borrowed: count } }
|
||||
}
|
||||
|
||||
#[derive(Props)]
|
||||
@@ -26,7 +22,5 @@ fn unsafe_child_component<'a>(cx: Testing) -> Element {
|
||||
.borrow_mut()
|
||||
.push(render! {"{borrowed_temporary_data}"});
|
||||
|
||||
cx.render(rsx! {
|
||||
div { "Hello, world!" }
|
||||
})
|
||||
render! { div { "Hello, world!" } }
|
||||
}
|
||||
@@ -5,11 +5,7 @@ fn main() {}
|
||||
fn app() -> Element {
|
||||
let count = vec![1, 2, 3];
|
||||
|
||||
render! {
|
||||
unsafe_child_component {
|
||||
borrowed: &count
|
||||
}
|
||||
}
|
||||
render! { unsafe_child_component { borrowed: &count } }
|
||||
}
|
||||
|
||||
#[derive(Props)]
|
||||
@@ -18,7 +14,5 @@ struct Testing<'a> {
|
||||
}
|
||||
|
||||
fn unsafe_child_component<'a>(cx: Testing) -> Element {
|
||||
cx.render(rsx! {
|
||||
div { "{cx.borrowed:?}" }
|
||||
})
|
||||
render! { div { "{cx.borrowed:?}" } }
|
||||
}
|
||||
Reference in new issue
Block a user