mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 14:09:21 -05:00
feat: update leptos to v0.7.0-beta4 (#246)
This commit is contained in:
parent
0f989bed73
commit
98270c17ce
5 changed files with 13 additions and 15 deletions
|
@ -16,6 +16,6 @@ thaw_components = { version = "0.2.0-beta", path = "./thaw_components" }
|
|||
thaw_macro = { version = "0.1.0-beta", path = "./thaw_macro" }
|
||||
thaw_utils = { version = "0.1.0-beta", path = "./thaw_utils" }
|
||||
|
||||
leptos = { version = "0.7.0-beta2" }
|
||||
leptos_meta = { version = "0.7.0-beta2" }
|
||||
leptos_router = { version = "0.7.0-beta2" }
|
||||
leptos = { version = "0.7.0-beta4" }
|
||||
leptos_meta = { version = "0.7.0-beta4" }
|
||||
leptos_router = { version = "0.7.0-beta4" }
|
||||
|
|
|
@ -9,10 +9,10 @@ crate-type = ["cdylib", "rlib"]
|
|||
[dependencies]
|
||||
axum = { version = "0.7", optional = true }
|
||||
console_error_panic_hook = "0.1"
|
||||
leptos = { version = "0.7.0-beta2", features = ["experimental-islands"] }
|
||||
leptos_axum = { version = "0.7.0-beta2", optional = true }
|
||||
leptos_meta = { version = "0.7.0-beta2" }
|
||||
leptos_router = { version = "0.7.0-beta2" }
|
||||
leptos = { version = "0.7.0-beta4", features = ["experimental-islands"] }
|
||||
leptos_axum = { version = "0.7.0-beta4", optional = true }
|
||||
leptos_meta = { version = "0.7.0-beta4" }
|
||||
leptos_router = { version = "0.7.0-beta4" }
|
||||
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
|
||||
tower = { version = "0.4", optional = true }
|
||||
tower-http = { version = "0.5", features = ["fs"], optional = true }
|
||||
|
|
|
@ -9,10 +9,10 @@ crate-type = ["cdylib", "rlib"]
|
|||
[dependencies]
|
||||
axum = { version = "0.7.5", optional = true }
|
||||
console_error_panic_hook = "0.1"
|
||||
leptos = { version = "0.7.0-beta2" }
|
||||
leptos_axum = { version = "0.7.0-beta2", optional = true }
|
||||
leptos_meta = { version = "0.7.0-beta2" }
|
||||
leptos_router = { version = "0.7.0-beta2" }
|
||||
leptos = { version = "0.7.0-beta4" }
|
||||
leptos_axum = { version = "0.7.0-beta4", optional = true }
|
||||
leptos_meta = { version = "0.7.0-beta4" }
|
||||
leptos_router = { version = "0.7.0-beta4" }
|
||||
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
|
||||
tower = { version = "0.5.0", optional = true }
|
||||
tower-http = { version = "0.5", features = ["fs"], optional = true }
|
||||
|
|
|
@ -30,7 +30,7 @@ impl FieldContextInjection {
|
|||
validate: impl Fn() -> bool + Send + Sync + 'static,
|
||||
) {
|
||||
let mut key = None;
|
||||
let validate = Callback::from(move |_| validate());
|
||||
let validate: Callback<(), bool> = Callback::from(move || validate());
|
||||
self.0.update_value(|map| {
|
||||
key = Some(map.insert((name, validate)));
|
||||
()
|
||||
|
|
|
@ -3,9 +3,7 @@ use leptos::reactive_graph::wrappers::read::MaybeSignal;
|
|||
pub fn use_lock_html_scroll(is_lock: MaybeSignal<bool>) {
|
||||
#[cfg(any(feature = "csr", feature = "hydrate"))]
|
||||
{
|
||||
use leptos::prelude::{
|
||||
document, effect::RenderEffect, on_cleanup, traits::Get, StoredValue,
|
||||
};
|
||||
use leptos::prelude::{document, on_cleanup, Get, RenderEffect, StoredValue};
|
||||
use send_wrapper::SendWrapper;
|
||||
|
||||
let style_el = StoredValue::new(SendWrapper::new(None::<web_sys::Element>));
|
||||
|
|
Loading…
Add table
Reference in a new issue