pub fn extend<U>(&self, f: impl FnOnce() -> U) -> U {
        SCOPES.with(|scopes| {
            scopes.borrow_mut().push(ReactiveScope(self.0.clone())); // We now have 2 references to the scope.
            let u = f();
            scopes.borrow_mut().pop().unwrap(); // Rationale: pop the scope we pushed above.
                                                // Since we have 2 references to the scope, this will not drop the scope.
            u
        })
    }
/// Runs the passed callback in the reactive scope pointed to by this handle.
Runs the passed callback in the reactive scope pointed to by this handle.
Runs the passed callback in the reactive scope pointed to by this handle .
pub fn extend<U>(&self, f: impl FnOnce() -> U) -> U {
        SCOPES.with(|scopes| {
            scopes.borrow_mut().push(ReactiveScope(self.0.clone())); // We now have 2 references to the scope.
            let u = f();
            scopes.borrow_mut().pop().unwrap(); // Rationale: pop the scope we pushed above.
                                                // Since we have 2 references to the scope, this will not drop the scope.
            u
        })
    }
pub fn extend < U > ( & self , f : impl FnOnce ( ) -> U ) -> U { SCOPES . with ( | scopes | { scopes . borrow_mut ( ) . push ( ReactiveScope ( self . 0 . clone ( ) ) ) ; // We now have 2 references to the scope. let u = f ( ) ; scopes . borrow_mut ( ) . pop ( ) . unwrap ( ) ; // Rationale: pop the scope we pushed above. // Since we have 2 references to the scope, this will not drop the scope. u } ) }
Runs the passed callback in the reactive scope pointed to by this handle.
Runs the passed callback in the reactive scope pointed to by this handle .
&self
f
impl FnOnce() -> U