From 9ffd5b6c4efe0523e86262719b636f61a9582a36 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 17 Apr 2024 06:51:21 +0200 Subject: [PATCH] fix(web): just rebuild timeline on routing basically don't delete draft when navigating --- web/src/lib.rs | 4 +-- web/src/main.rs | 94 ++++++++++++++++++++++++------------------------- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index a58e694b..8a1d0b86 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -99,14 +99,14 @@ pub fn TimelineNavigation() -> impl IntoView { diff --git a/web/src/main.rs b/web/src/main.rs index 14c759d1..e8d9e081 100644 --- a/web/src/main.rs +++ b/web/src/main.rs @@ -43,54 +43,54 @@ fn main() {
- -

nothing to see here!

-

-
- }.into_view() - > - // TODO this is kind of ugly: the whole router gets rebuilt every time we log in/out - // in a sense it's what we want: refreshing the home tl is main purpose, but also - // server tl may contain stuff we can no longer see, or otherwise we may now be - // entitled to see new posts. so while being ugly it's techically correct ig? - {move || { - view! { -
-
-
- -
- -
- -
-
- - - - } /> - } /> - - - - - } /> - -
+
+
+ +
+ +
+ +
+
+ +

nothing to see here!

+

-
- } - }} - + }.into_view() + > + // TODO this is kind of ugly: the whole router gets rebuilt every time we log in/out + // in a sense it's what we want: refreshing the home tl is main purpose, but also + // server tl may contain stuff we can no longer see, or otherwise we may now be + // entitled to see new posts. so while being ugly it's techically correct ig? + {move || { + view! { +
+ + + + } /> + } /> + + + + + } /> + +
+ } + }} + + +