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: Eval Prematurely Dropping #3877

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

DogeDark
Copy link
Member

@DogeDark DogeDark commented Mar 15, 2025

The eval channel was being garbage collected even though the user's code should still have a hard reference to it.

I spent a while trying to solve the root issue of why the channel is getting GC'ed (maybe some weird async JS GC trickery?), and decided it'd be quicker to implement a system where the channel is only dropped when we manually dioxus.close(); it. The close method is already called internally and won't need to be called by the user.

Fixes #2979

@DogeDark DogeDark added bug Something isn't working javascript Pull requests that update Javascript code labels Mar 15, 2025
@DogeDark DogeDark requested a review from a team as a code owner March 15, 2025 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Eval suddenly stops
1 participant