mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
Fix default feature
This commit is contained in:
parent
ecd584bc57
commit
8936e06783
2 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ web-sys = { version = "0.3", optional = true, features = ["Element"] }
|
|||
sycamore = "0.8.0-beta.7"
|
||||
|
||||
[features]
|
||||
default = ["csr"]
|
||||
csr = ["dep:wasm-bindgen", "dep:wasm-bindgen-futures", "dep:web-sys"]
|
||||
hydrate = ["dep:base64", "dep:js-sys", "dep:serde-wasm-bindgen", "dep:serde_json", "dep:wasm-bindgen", "dep:wasm-bindgen-futures", "dep:web-sys"]
|
||||
ssr = ["dep:base64", "dep:futures", "dep:serde_json", "dep:tokio"]
|
||||
|
|
|
@ -28,7 +28,7 @@ where
|
|||
wasm_bindgen_futures::spawn_local(fut)
|
||||
}
|
||||
|
||||
#[cfg(not(any(feature = "csr", feature = "hydrate")))]
|
||||
#[cfg(feature = "ssr")]
|
||||
pub fn spawn_local<F>(fut: F)
|
||||
where
|
||||
F: Future<Output = ()> + 'static,
|
||||
|
|
Loading…
Reference in a new issue