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 hot reload diffing to empty rsx #3567

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ealmloff
Copy link
Member

Fixes hot reloading empty rsx nodes. When we see an empty rsx node, we replaced it with rsx!{{()}} in the ToTokens implementation, but not during hot reloading. Removing the last node is not hot reloadable because placeholder it creates is a dynamic node.

Fixes #3562

@ealmloff ealmloff added bug Something isn't working rsx Related to rsx or the dioxus-rsx crate labels Jan 14, 2025
@ealmloff ealmloff added the hot-reload Related to the hot reload crate label Jan 14, 2025
@ealmloff ealmloff changed the title Fix hot reloading to empty rsx Fix hot reload diffing to empty rsx Jan 16, 2025
@ealmloff ealmloff requested a review from a team as a code owner January 16, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hot-reload Related to the hot reload crate rsx Related to rsx or the dioxus-rsx crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removing last node from rsx block fails to hot reload
1 participant