move ScopeId methods to the runtime (#4723)

* move `ScopeId` methods to runtime methods

* cargo check unused

* wip...

* wip...

* fix consume context

* fix test

* guard hoisted

* fix doc comment
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-04 01:55:52 -07:00
1 parent c56bac04f4
commit c29cef4ea3
40 files changed
+466 -697

No files matched your search

+2 -6
View File
@@ -62,11 +62,7 @@ impl ReactiveContext {
}
let _ = tx.unbounded_send(());
};
let _self = Self::new_with_callback(
callback,
current_scope_id().unwrap_or_else(|e| panic!("{}", e)),
origin,
);
let _self = Self::new_with_callback(callback, current_scope_id(), origin);
(_self, rx)
}
@@ -86,7 +82,7 @@ impl ReactiveContext {
scope: None,
};
let owner = scope.owner();
let owner = Runtime::current().scope_owner(scope);
let self_ = Self {
scope,