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:
1 parent
c56bac04f4
commit
c29cef4ea3
40 files changed
+466
-697
No files matched your search
@@ -115,7 +115,7 @@ fn WebSysClosure() -> Element {
|
||||
|
||||
// Make sure passing the runtime into the closure works
|
||||
let callback = Callback::new(|_| {
|
||||
assert!(!dioxus::dioxus_core::vdom_is_rendering());
|
||||
assert!(!dioxus::dioxus_core::Runtime::current().vdom_is_rendering());
|
||||
*TRIGGERED.write() = true;
|
||||
});
|
||||
let closure: Closure<dyn Fn()> = Closure::new({
|
||||
|
||||
Reference in new issue
Block a user