Skip to content

fix: remove faulty deserialize#5610

Open
danielkov wants to merge 1 commit into
DioxusLabs:mainfrom
danielkov:fix/eventdata-private-deserialize
Open

fix: remove faulty deserialize#5610
danielkov wants to merge 1 commit into
DioxusLabs:mainfrom
danielkov:fix/eventdata-private-deserialize

Conversation

@danielkov

Copy link
Copy Markdown
Contributor

Closes #5582

Remove faulty EventData #derive(Deserialize).

Why

Deserialize derive impl was faulty, due to #[serde(untagged)] and the first variant being Cancel(SerializedCancelData {}) matching any JSON object. This meant serde_json::from_str::<EventData> always returned Cancel for all inputs.

@danielkov danielkov requested a review from a team as a code owner June 2, 2026 19:46
@ealmloff ealmloff added breaking This is a breaking change html Related to the html crate labels Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking This is a breaking change html Related to the html crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EventData direct deserialization silently matches the wrong variant

2 participants