Function sycamore_reactive::create_scope_immediate
source · [−]Expand description
Creates a reactive scope, runs the callback, and disposes the scope immediately.
Calling this is equivalent to writing:
(create_scope(|cx| {
// ...
})).dispose(); // Call the disposer function immediately