Function sycamore::hydrate_get_scope
source · [−]pub fn hydrate_get_scope<'a>(
view: impl FnOnce(BoundedScope<'_, '_>) -> View<HydrateNode> + 'a,
parent: &'a Node
) -> ScopeDisposer<'a>
Expand description
Render a View
under a parent
node, in a way that can be cleaned up.
This function is intended to be used for injecting an ephemeral sycamore view into a
non-sycamore app (for example, a file upload modal where you want to cancel the upload if the
modal is closed).
This API requires the following crate features to be activated: hydrate
, dom