mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 14:32:00 +00:00
revert accident
This commit is contained in:
parent
884dacbc6c
commit
59ad6a4725
1 changed files with 3 additions and 3 deletions
|
@ -97,10 +97,10 @@ pub fn Counter(cx: Scope) -> impl IntoView {
|
||||||
|_| get_server_count(),
|
|_| get_server_count(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let value = move || counter.read(cx).map(|count| count.unwrap_or(0)).unwrap_or(0);
|
let value = move || counter.read().map(|count| count.unwrap_or(0)).unwrap_or(0);
|
||||||
let error_msg = move || {
|
let error_msg = move || {
|
||||||
counter
|
counter
|
||||||
.read(cx)
|
.read()
|
||||||
.map(|res| match res {
|
.map(|res| match res {
|
||||||
Ok(_) => None,
|
Ok(_) => None,
|
||||||
Err(e) => Some(e),
|
Err(e) => Some(e),
|
||||||
|
@ -143,7 +143,7 @@ pub fn FormCounter(cx: Scope) -> impl IntoView {
|
||||||
let value = move || {
|
let value = move || {
|
||||||
log::debug!("FormCounter looking for value");
|
log::debug!("FormCounter looking for value");
|
||||||
counter
|
counter
|
||||||
.read(cx)
|
.read()
|
||||||
.map(|n| n.ok())
|
.map(|n| n.ok())
|
||||||
.flatten()
|
.flatten()
|
||||||
.map(|n| n)
|
.map(|n| n)
|
||||||
|
|
Loading…
Reference in a new issue