mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 22:09:22 -05:00
fix: ConfigProvider on_cleanup
This commit is contained in:
parent
ed9f592c01
commit
45b7877500
2 changed files with 7 additions and 9 deletions
|
@ -9,10 +9,10 @@ crate-type = ["cdylib", "rlib"]
|
|||
[dependencies]
|
||||
axum = { version = "0.7.4", optional = true }
|
||||
console_error_panic_hook = "0.1"
|
||||
leptos = { version = "0.7.0-beta" }
|
||||
leptos_axum = { version = "0.7.0-beta", optional = true }
|
||||
leptos_meta = { version = "0.7.0-beta" }
|
||||
leptos_router = { version = "0.7.0-beta" }
|
||||
leptos = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" }
|
||||
leptos_axum = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b", optional = true }
|
||||
leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" }
|
||||
leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" }
|
||||
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
|
||||
tower = { version = "0.4", optional = true }
|
||||
tower-http = { version = "0.5", features = ["fs"], optional = true }
|
||||
|
@ -25,10 +25,7 @@ log = "0.4"
|
|||
demo = { path = "../../demo", default-features = false }
|
||||
|
||||
[features]
|
||||
hydrate = [
|
||||
"leptos/hydrate",
|
||||
"demo/hydrate",
|
||||
]
|
||||
hydrate = ["leptos/hydrate", "demo/hydrate"]
|
||||
ssr = [
|
||||
"dep:axum",
|
||||
"dep:tokio",
|
||||
|
|
|
@ -30,7 +30,8 @@ pub fn ConfigProvider(
|
|||
)
|
||||
});
|
||||
|
||||
on_cleanup(move || {
|
||||
#[cfg(not(feature = "ssr"))]
|
||||
Owner::on_cleanup(move || {
|
||||
if let Ok(Some(style)) =
|
||||
document().query_selector(&format!("head style[data-thaw-id=\"{}\"]", id.get_value()))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue