run hook destructors inside of the scope they were created in

This commit is contained in:
Evan Almloff committed 2024-01-22 09:32:53 -06:00
1 parent e5a11aa2a5
commit cdf25f0c14
3 files changed
+22 -15

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ fn contexts_drop() {
}
}
#[allow(non_snake_case)]
fn ChildComp() -> Element {
let el = consume_context::<String>();