mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix merge issues
This commit is contained in:
parent
93c893f4b3
commit
632ce0f401
1 changed files with 2 additions and 7 deletions
|
@ -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.
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue