erase the original readable type

This commit is contained in:
Evan Almloff committed 2024-02-07 11:19:39 -06:00
1 parent c8937cb4df
commit 8689509eb5
9 files changed
+99 -175

No files matched your search

+2 -3
View File
@@ -1,7 +1,6 @@
#![allow(non_snake_case)]
use dioxus::prelude::*;
use dioxus_signals::Signal;
fn main() {
launch(app);
@@ -34,12 +33,12 @@ fn app() -> Element {
}
#[component]
fn Child(count: MappedSignal<i32, Signal<Vec<i32>>>) -> Element {
fn Child(count: MappedSignal<i32>) -> Element {
use_memo({
to_owned![count];
move || {
let value = count.read();
print!("Child value: {value}");
println!("Child value: {value}");
}
});