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:
Evan Almloff authored and GitHub committed 2024-04-26 12:52:33 -04:00
1 parent a0e06271dd
commit 74352f2f61
6 files changed
+124 -48

No files matched your search

+2 -1
View File
@@ -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 {