Skip to content

check for duplicate event listeners in the rsx macro #1812

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 2 commits into from
Jan 11, 2024

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Jan 11, 2024

Our current way of deduplicating event listeners at runtime is flawed. We stop once we reach the first dynamic attribute at the event path instead waiting for the first event listeners. This PR fixes that issue by moving duplicate event listener detection to compile time in the rsx macro

fixes #1811

@ealmloff ealmloff added bug Something isn't working core relating to the core implementation of the virtualdom labels Jan 11, 2024
@jkelleyrtp jkelleyrtp merged commit 4f077ec into DioxusLabs:master Jan 11, 2024
@ealmloff ealmloff deleted the duplicate-event-listener-rsx branch January 11, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core relating to the core implementation of the virtualdom
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some of elements lost their's responsiveness
2 participants