We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc1f984 commit a0654a7Copy full SHA for a0654a7
thaw/src/mobile/toast/mod.rs
@@ -9,7 +9,7 @@ pub struct ToastOptions {
9
10
pub fn show_toast(options: ToastOptions) {
11
mount_style("toast", include_str!("./toast.css"));
12
- cfg_if! { if #[cfg(target_arch = "wasm32")] {
+ cfg_if! { if #[cfg(all(target_arch = "wasm32", any(feature = "csr", feature = "hydrate")))] {
13
use leptos::{leptos_dom::Mountable, *};
14
let mount = document().body().expect("body element to exist");
15
let children = view! { <div class="thaw-toast">{options.message}</div> };
0 commit comments