mirror of
https://github.com/Nutomic/ibis.git
synced 2025-01-27 05:05:52 +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 {
|
pub fn shell(options: LeptosOptions) -> impl IntoView {
|
||||||
view! {
|
view! {
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
|
|
@ -10,7 +10,6 @@ use leptos::prelude::*;
|
||||||
#[component]
|
#[component]
|
||||||
pub fn ArticleHistory() -> impl IntoView {
|
pub fn ArticleHistory() -> impl IntoView {
|
||||||
let article = article_resource();
|
let article = article_resource();
|
||||||
let edits = article_edits_resource(article);
|
|
||||||
|
|
||||||
view! {
|
view! {
|
||||||
<ArticleNav article=article active_tab=ActiveTab::History />
|
<ArticleNav article=article active_tab=ActiveTab::History />
|
||||||
|
@ -18,7 +17,7 @@ pub fn ArticleHistory() -> impl IntoView {
|
||||||
view! { "Loading..." }
|
view! { "Loading..." }
|
||||||
}>
|
}>
|
||||||
{move || {
|
{move || {
|
||||||
edits
|
article_edits_resource(article)
|
||||||
.get()
|
.get()
|
||||||
.map(|edits| {
|
.map(|edits| {
|
||||||
view! { <EditList edits=edits for_article=true /> }
|
view! { <EditList edits=edits for_article=true /> }
|
||||||
|
|
Loading…
Reference in a new issue