diff --git a/leptos/src/suspense_component.rs b/leptos/src/suspense_component.rs index 82b780b3d3..b081576579 100644 --- a/leptos/src/suspense_component.rs +++ b/leptos/src/suspense_component.rs @@ -36,7 +36,7 @@ use std::rc::Rc; ///
/// "Loading (Suspense Fallback)..."

}> /// {move || { -/// cats.read().map(|data| match data { +/// cats.get().map(|data| match data { /// None => view! {
"Error"
}.into_view(), /// Some(cats) => cats /// .iter()