Much neater

This commit is contained in:
Greg Johnston 2022-08-01 18:43:39 -04:00
parent 5f2b92c267
commit 62eaa56102

View file

@ -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! {