feat: dispatch managed events through capture and bubble subscriptions
Verify Tessera GUI / verify (push) Failing after 7m13s

This commit is contained in:
2026-10-21 02:20:00 +08:00
parent 6c42e5dde4
commit 8886bdbd2d
11 changed files with 767 additions and 46 deletions
+5
View File
@@ -111,6 +111,7 @@ pub struct Data {
pub history_index: usize,
pub text_binding: Option<(ObjectRef, String)>,
pub click: Option<ObjectRef>,
pub subscriptions: Vec<ObjectRef>,
pub properties: Option<ObjectRef>,
}
@@ -134,6 +135,7 @@ impl Data {
history_index: 0,
text_binding: None,
click: None,
subscriptions: vec![],
properties: None,
}
}
@@ -165,6 +167,9 @@ impl ObjectPayload for Data {
if let Some((source, _)) = &self.text_binding {
visit(*source);
}
for token in &self.subscriptions {
visit(*token);
}
if let Some(handler) = self.click {
visit(handler);
}