Skip to content

Commit

Permalink
fix merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Jul 30, 2024
1 parent 4fd591c commit 61eea99
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions leptos/src/portal.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
use crate::{children::TypedChildrenFn, mount, IntoView};
use leptos_dom::helpers::document;
use leptos_macro::component;
#[cfg(all(
target_arch = "wasm32",
any(feature = "hydrate", feature = "csr")
))]
use reactive_graph::untrack;
use reactive_graph::{effect::Effect, owner::Owner};
use reactive_graph::{effect::Effect, owner::Owner, untrack};
use std::sync::Arc;

/// Renders components somewhere else in the DOM.
Expand Down Expand Up @@ -71,7 +66,7 @@ where
let handle = SendWrapper::new((
mount::mount_to(render_root.unchecked_into(), {
let children = Arc::clone(&children);
move || untrack(children())
move || untrack(|| children())
}),
mount.clone(),
container,
Expand Down

0 comments on commit 61eea99

Please sign in to comment.