Skip to content

Conversation

ealmloff
Copy link
Member

We were using the Closure<dyn FnMut> type for the event handling closure. Events can be invoked recursively sometimes which is not allowed with Closure<dyn FnMut>. Switching to Closure<dyn Fn> fixes the issue

Fixes #2882

@ealmloff ealmloff added bug Something isn't working web relating to the web renderer for dioxus labels Dec 19, 2024
@jkelleyrtp jkelleyrtp merged commit ecf8d16 into DioxusLabs:main Dec 20, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web relating to the web renderer for dioxus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

closure invoked recursively or after being dropped
2 participants