Wasm target check before build (#1689)
* Add `rustup show` check for wasm32 target * better place for check * fmt * clippy fmt
This commit is contained in:
1 parent
424926a8db
commit
fc31876a57
9 files changed
+36
-36
No files matched your search
@@ -22,15 +22,9 @@ fn app(cx: Scope) -> Element {
|
||||
use_context_provider(cx, ApplicationData::default);
|
||||
|
||||
render! {
|
||||
div {
|
||||
ReadsFirst {}
|
||||
}
|
||||
div {
|
||||
ReadsSecond {}
|
||||
}
|
||||
div {
|
||||
ReadsManySignals {}
|
||||
}
|
||||
div { ReadsFirst {} }
|
||||
div { ReadsSecond {} }
|
||||
div { ReadsManySignals {} }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,16 +101,14 @@ fn ReadsManySignals(cx: Scope) -> Element {
|
||||
}
|
||||
button {
|
||||
onclick: move |_| {
|
||||
if let Some(first) = data.many_signals.read().get(0) {
|
||||
if let Some(first) = data.many_signals.read().first() {
|
||||
*first.write() += 1;
|
||||
}
|
||||
},
|
||||
"Increase First Item"
|
||||
}
|
||||
for signal in data.many_signals {
|
||||
Child {
|
||||
count: signal,
|
||||
}
|
||||
Child { count: signal }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user