diff --git a/leptos_dom/src/lib.rs b/leptos_dom/src/lib.rs index d7461f2a93..b6721bd245 100644 --- a/leptos_dom/src/lib.rs +++ b/leptos_dom/src/lib.rs @@ -926,7 +926,7 @@ pub enum MountKind<'a> { /// Runs the provided closure and mounts the result to the ``. pub fn mount_to_body(f: F) where - F: Fn() -> N + 'static, + F: FnOnce() -> N + 'static, N: IntoView, { #[cfg(all(feature = "web", feature = "ssr"))]