+
}
@@ -123,7 +112,7 @@ pub fn App() -> impl IntoView {
} />
-
+
}
@@ -131,25 +120,22 @@ pub fn App() -> impl IntoView {
view! { }
}
/>
- } />
- } />
- } />
- } />
+ } />
+ } />
+ } />
+ } />
} />
- // TODO can we avoid this?
-
-
- } />
- } />
-
-
+ // TODO can we avoid this?
+
+ } />
+ } />
-
+
// } />
@@ -170,11 +156,11 @@ pub fn App() -> impl IntoView {
}
#[component]
-fn Navigable() -> impl IntoView {
+fn Scrollable() -> impl IntoView {
let location = use_location();
let breadcrumb = Signal::derive(move || {
let path = location.pathname.get();
- let mut path_iter = path.split('/').skip(1);
+ let mut path_iter = path.split('/').skip(2);
// TODO wow this breadcrumb logic really isnt nice can we make it better??
match path_iter.next() {
Some("actors") => match path_iter.next() {
@@ -197,12 +183,17 @@ fn Navigable() -> impl IntoView {
None => "?".to_string(),
}
});
+ let element = create_node_ref();
+ let should_load = use_scroll_limit(element, 1750.0);
+ provide_context(should_load);
view! {
-