From 596b1bcb21da5d95746344430decbec612126401 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 21 Jan 2025 15:14:11 +0100 Subject: [PATCH] Fix hydration error --- src/frontend/app.rs | 2 +- src/frontend/pages/article/history.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/app.rs b/src/frontend/app.rs index ea939f6..2e6ac96 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -68,7 +68,7 @@ impl DefaultResource for Resource { } pub fn shell(options: LeptosOptions) -> impl IntoView { view! { - + diff --git a/src/frontend/pages/article/history.rs b/src/frontend/pages/article/history.rs index bbc9edf..d604b10 100644 --- a/src/frontend/pages/article/history.rs +++ b/src/frontend/pages/article/history.rs @@ -10,7 +10,6 @@ use leptos::prelude::*; #[component] pub fn ArticleHistory() -> impl IntoView { let article = article_resource(); - let edits = article_edits_resource(article); view! { @@ -18,7 +17,7 @@ pub fn ArticleHistory() -> impl IntoView { view! { "Loading..." } }> {move || { - edits + article_edits_resource(article) .get() .map(|edits| { view! { }