Fix desktop effect race condition (#2313)
* don't poll desktop before the render has been applied * fix desktop headless tests * move edit queued code into the edit channel and add more comments
This commit is contained in:
1 parent
a0e06271dd
commit
74352f2f61
6 files changed
+124
-48
No files matched your search
@@ -20,8 +20,9 @@ fn app() -> Element {
|
||||
let received = RECEIVED_EVENTS();
|
||||
let expected = utils::EXPECTED_EVENTS();
|
||||
|
||||
use_effect(move || {
|
||||
use_memo(move || {
|
||||
println!("expecting {} events", utils::EXPECTED_EVENTS());
|
||||
println!("received {} events", RECEIVED_EVENTS());
|
||||
});
|
||||
|
||||
if expected != 0 && received == expected {
|
||||
|
||||
Reference in new issue
Block a user