mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
Much neater
This commit is contained in:
parent
5f2b92c267
commit
62eaa56102
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ pub fn fetch_example(cx: Scope) -> web_sys::Element {
|
|||
}
|
||||
/>
|
||||
</label>
|
||||
{match &**(cats.data.get().guard()) {
|
||||
{move || match &*cats.data.get() {
|
||||
None => view! { <p>"Loading..."</p> },
|
||||
Some(Err(e)) => view! { <pre>"Error: " {e.to_string()}</pre> },
|
||||
Some(Ok(cats)) => view! {
|
||||
|
|
Loading…
Reference in a new issue