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 and test spawn_forever #2216

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Apr 1, 2024

This PR fixes spawn forever by spawning the future in the root scope. This may result in unexpected behavior with global APIs which are now documented. It also adds a test to prevent future regressions

Fixes #2215

@ealmloff ealmloff added bug Something isn't working core relating to the core implementation of the virtualdom labels Apr 1, 2024
@jkelleyrtp jkelleyrtp merged commit 5df333f into DioxusLabs:main Apr 2, 2024
8 of 9 checks passed
@ealmloff ealmloff deleted the spawn-forever-in-root branch April 2, 2024 17:58
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.

bug: spawn_forever tasks get attached to the scope
2 participants