From 54b23447ee81778cd2c9e1d288cbabffc364daf0 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Tue, 9 Jul 2024 15:04:20 +0800 Subject: [PATCH] feat(leptos-v0.7): error --- Cargo.toml | 4 +-- demo/Cargo.toml | 4 +-- demo/src/app.rs | 2 +- demo/src/pages/home.rs | 2 +- demo_markdown/docs/loading_bar/mod.md | 14 ++++---- thaw/Cargo.toml | 2 +- thaw/src/auto_complete/mod.rs | 6 ++-- thaw/src/badge/badge.rs | 13 ++++--- thaw/src/loading_bar/loading_bar_provider.rs | 8 ++--- thaw/src/loading_bar/mod.rs | 6 ++-- thaw/src/space/mod.rs | 1 + thaw_components/Cargo.toml | 2 +- thaw_components/src/teleport/mod.rs | 27 ++++++++------ thaw_utils/Cargo.toml | 2 +- thaw_utils/src/hooks/use_lock_html_scroll.rs | 8 +++-- thaw_utils/src/hooks/use_next_frame.rs | 38 +++++++++++++++++--- 16 files changed, 91 insertions(+), 48 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 091f8f8..349f4c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,5 +16,5 @@ thaw_components = { version = "0.1.1", path = "./thaw_components" } thaw_macro = { version = "0.1.0", path = "./thaw_macro" } thaw_utils = { version = "0.0.3", path = "./thaw_utils" } -leptos = { git = "https://github.com/leptos-rs/leptos", rev = "ae0dc13c" } -leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "ae0dc13c" } \ No newline at end of file +leptos = { git = "https://github.com/leptos-rs/leptos", rev = "e507945c" } +leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "e507945c" } \ No newline at end of file diff --git a/demo/Cargo.toml b/demo/Cargo.toml index 7c357c5..e84b502 100644 --- a/demo/Cargo.toml +++ b/demo/Cargo.toml @@ -9,14 +9,14 @@ edition = "2021" [dependencies] leptos = { workspace = true } leptos_meta = { workspace = true } -leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "ae0dc13c" } +leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "e507945c" } thaw = { path = "../thaw" } demo_markdown = { path = "../demo_markdown" } icondata = "0.3.0" palette = "0.7.4" chrono = "0.4.33" cfg-if = "1.0.0" -leptos-use = "0.10.10" +# leptos-use = "0.10.10" send_wrapper = "0.6" [features] diff --git a/demo/src/app.rs b/demo/src/app.rs index 1b483a7..b10d97d 100644 --- a/demo/src/app.rs +++ b/demo/src/app.rs @@ -30,7 +30,7 @@ pub fn App() -> impl IntoView { #[component] fn TheRouter(is_routing: RwSignal) -> impl IntoView { - let loading_bar = use_loading_bar(); + let loading_bar = LoadingBarInjection::expect_use(); _ = is_routing.watch(move |is_routing| { if *is_routing { loading_bar.start(); diff --git a/demo/src/pages/home.rs b/demo/src/pages/home.rs index 58d3085..7bba7e9 100644 --- a/demo/src/pages/home.rs +++ b/demo/src/pages/home.rs @@ -22,7 +22,7 @@ pub fn Home() -> impl IntoView {