pub fn create_scope_immediate(f: impl for<'a> FnOnce(Scope<'a>))
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