mirror of
https://github.com/Nutomic/ibis.git
synced 2025-01-26 07:25:49 +00:00
Fix hydration error
This commit is contained in:
parent
ce5b2f1915
commit
596b1bcb21
2 changed files with 2 additions and 3 deletions
|
@ -68,7 +68,7 @@ impl<T: Default + Send + Sync + Clone> DefaultResource<T> for Resource<T> {
|
|||
}
|
||||
pub fn shell(options: LeptosOptions) -> impl IntoView {
|
||||
view! {
|
||||
<!DOCTYPE html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
|
|
@ -10,7 +10,6 @@ use leptos::prelude::*;
|
|||
#[component]
|
||||
pub fn ArticleHistory() -> impl IntoView {
|
||||
let article = article_resource();
|
||||
let edits = article_edits_resource(article);
|
||||
|
||||
view! {
|
||||
<ArticleNav article=article active_tab=ActiveTab::History />
|
||||
|
@ -18,7 +17,7 @@ pub fn ArticleHistory() -> impl IntoView {
|
|||
view! { "Loading..." }
|
||||
}>
|
||||
{move || {
|
||||
edits
|
||||
article_edits_resource(article)
|
||||
.get()
|
||||
.map(|edits| {
|
||||
view! { <EditList edits=edits for_article=true /> }
|
||||
|
|
Loading…
Reference in a new issue