mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
fix drop order test
This commit is contained in:
parent
8f786d85cd
commit
e5a11aa2a5
1 changed files with 3 additions and 1 deletions
|
@ -127,9 +127,11 @@ fn hooks_drop_before_contexts() {
|
|||
|
||||
impl Drop for ReadsContextOnDrop {
|
||||
fn drop(&mut self) {
|
||||
let _ = consume_context::<i32>();
|
||||
assert_eq!(123, consume_context::<i32>());
|
||||
}
|
||||
}
|
||||
|
||||
ReadsContextOnDrop
|
||||
});
|
||||
|
||||
rsx! { div {} }
|
||||
|
|
Loading…
Reference in a new issue