diff --git a/crates/izlek-web/src/board.rs b/crates/izlek-web/src/board.rs index 565e71d..2bc183a 100644 --- a/crates/izlek-web/src/board.rs +++ b/crates/izlek-web/src/board.rs @@ -181,7 +181,7 @@ impl Filter { pub fn Board() -> impl IntoView { let board = Resource::new(|| (), |_| async move { current_board().await }); // Which card is open in the detail modal, if any. It lives out here, above - // the suspense boundary: a refetch rebuilds `BoardScreen` from scratch, and + // the transition boundary: a refetch rebuilds `BoardScreen` from scratch, and // a signal owned by that component would be born empty again — closing the // modal every time something inside it saved. // Seeded from `?task=`, so a card is a link and the modal has an address. A @@ -194,7 +194,7 @@ pub fn Board() -> impl IntoView { ); view! { - } }> {move || Suspend::new(async move { @@ -227,7 +227,7 @@ pub fn Board() -> impl IntoView { } } })} - + } } diff --git a/crates/izlek-web/src/detail.rs b/crates/izlek-web/src/detail.rs index 2d8c547..9fed9b1 100644 --- a/crates/izlek-web/src/detail.rs +++ b/crates/izlek-web/src/detail.rs @@ -647,7 +647,7 @@ pub fn TaskDetailModal( view! { } diff --git a/crates/izlek-web/src/pages.rs b/crates/izlek-web/src/pages.rs index 5577473..afdc63e 100644 --- a/crates/izlek-web/src/pages.rs +++ b/crates/izlek-web/src/pages.rs @@ -17,7 +17,7 @@ pub fn Landing() -> impl IntoView { let gate = Resource::new(|| (), |_| async move { current_gate().await }); view! { - }> + }> {move || Suspend::new(async move { match gate.await { Ok(Gate::NeedsSetup) => { @@ -46,7 +46,7 @@ pub fn Landing() -> impl IntoView { } } })} - + } } @@ -140,7 +140,7 @@ pub fn Join() -> impl IntoView { let who = Resource::new(token, |token| async move { invitation(token).await }); view! { - }> + }> {move || Suspend::new(async move { match who.await { Ok(Some(person)) => view! { }.into_any(), @@ -159,7 +159,7 @@ pub fn Join() -> impl IntoView { } } })} - + } } diff --git a/crates/izlek-web/src/rules.rs b/crates/izlek-web/src/rules.rs index 2856df1..a197f3c 100644 --- a/crates/izlek-web/src/rules.rs +++ b/crates/izlek-web/src/rules.rs @@ -265,7 +265,7 @@ pub fn RulesPage() -> impl IntoView { let rules = Resource::new(|| (), |_| async move { current_rules().await }); view! { - }> + }> {move || Suspend::new(async move { match rules.await { Ok(Ok(snapshot)) => { @@ -298,7 +298,7 @@ pub fn RulesPage() -> impl IntoView { } } })} - + } } diff --git a/crates/izlek-web/src/settings.rs b/crates/izlek-web/src/settings.rs index e4bff54..f2c5552 100644 --- a/crates/izlek-web/src/settings.rs +++ b/crates/izlek-web/src/settings.rs @@ -510,7 +510,7 @@ pub async fn save_profile(display_name: String) -> Result, Serve pub fn SettingsPage() -> impl IntoView { let settings = Resource::new(|| (), |_| async move { current_settings().await }); // The link a call hands back, and the word for a call that was refused. - // They live here, above the Suspense, because a successful call refetches + // They live here, above the Transition, because a successful call refetches // the snapshot: signals owned by the members panel would be dropped with it // and the link — which the store keeps only as a hash — would be gone for // good before anyone could read it. @@ -518,7 +518,7 @@ pub fn SettingsPage() -> impl IntoView { let link_refusal = RwSignal::new(None::); view! { - }> + }> {move || Suspend::new(async move { match settings.await { Ok(Ok(snapshot)) => { @@ -553,7 +553,7 @@ pub fn SettingsPage() -> impl IntoView { } } })} - + } }