Skip to content
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

Fix using signals outside of a scope #1551

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

ealmloff
Copy link
Member

Currently signals can only be used inside of the Dioxus runtime. When they are used outside of the Dioxus runtime, they fail silently. This can be confusing when you try to integrate Dioxus with external futures like tokio futures, or external event handlers like web-sys closures.

This PR changes signals so that the runtime is only needed for signal creation instead of requiring a runtime any time you read or write to a signal

@ealmloff ealmloff added bug Something isn't working tweak Small changes to improve experience signals Related to the signals crate labels Oct 17, 2023
@jkelleyrtp jkelleyrtp merged commit ea8c5e2 into DioxusLabs:master Oct 23, 2023
10 checks passed
@jkelleyrtp jkelleyrtp added this to the 0.5 Release milestone Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working signals Related to the signals crate tweak Small changes to improve experience
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants