Skip to content

Switch to owned listener type #4289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 18, 2025
Merged

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Jun 17, 2025

This PR removes the workarounds we used to fix listener drops in a minor release. Since we can make breaking changes in 0.7, we can switch to an owned callback type for internal usage. This is technically breaking, but I don't expect this to require changes in many apps

This fixes the manually created event listeners in DioxusLabs/components#55

@ealmloff ealmloff added core relating to the core implementation of the virtualdom breaking This is a breaking change labels Jun 17, 2025
@@ -1,203 +0,0 @@
use std::{any::Any, cell::RefCell, rc::Rc};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This showed up in search results when I was trying to edit the event type, but this version is entirely unused

@ealmloff ealmloff marked this pull request as ready for review June 17, 2025 19:26
@ealmloff ealmloff requested a review from a team as a code owner June 17, 2025 19:26
@jkelleyrtp jkelleyrtp merged commit af6fc3a into DioxusLabs:main Jun 18, 2025
17 of 19 checks passed
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 core relating to the core implementation of the virtualdom
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants