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 fullstack history #1987

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

ealmloff
Copy link
Member

The fullstack renderer renders on a dedicated thread which should be fine to block in. This PR wraps rebuilding the virtual dom in a wrapper that tells tokio it is ok to block. Rebuilding the virtual dom runs user code which may use blocking tokio operations (like reading the fullstack history)

@ealmloff ealmloff added bug Something isn't working fullstack related to the fullstack crate labels Feb 27, 2024
@ealmloff ealmloff changed the title wrap fullstack rebuilds in block in place Fix fullstack history Feb 27, 2024
@ealmloff ealmloff force-pushed the fix-fullstack-history branch 2 times, most recently from 4f3f3ad to 97af8ac Compare February 28, 2024 19:59
@jkelleyrtp jkelleyrtp merged commit 62d7974 into DioxusLabs:main Mar 4, 2024
9 checks passed
@ealmloff ealmloff deleted the fix-fullstack-history branch March 4, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fullstack related to the fullstack crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants