Function sycamore_reactive::create_child_scope_in [−][src]
pub fn create_child_scope_in<'a>(
parent: &ReactiveScopeWeak,
callback: impl FnOnce() + 'a
) -> ReactiveScope
Expand description
Creates a ReactiveScope
with the specified parent scope. The parent scope does not
necessarily need to be the current scope.
In general, prefer create_scope
. This method is useful when scopes can be created outside of
the initial code path (e.g. inside a spawned future) and the scope hierarchy needs to be
conserved (e.g. to be able to access contexts).