Merge pull request #382 from DusterTheFirst/wasm-cfg

Fix cfg conditions for wasm
This commit is contained in:
Jon Kelley authored and GitHub committed 2022-04-28 15:56:02 -04:00
commit 52a235fda5
1 file changed
+2 -2
+2 -2
View File
@@ -6,10 +6,10 @@ pub mod hooks {
#[cfg(feature = "hooks")]
pub use dioxus_hooks::*;
#[cfg(all(target = "wasm", feature = "web"))]
#[cfg(all(target_arch = "wasm32", feature = "web"))]
pub use dioxus_web::use_eval;
#[cfg(all(not(target = "wasm"), feature = "desktop"))]
#[cfg(all(not(target_arch = "wasm32"), feature = "desktop"))]
pub use dioxus_desktop::use_eval;
}