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

Hash and compare templates by value in debug mode #3630

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

Conversation

ealmloff
Copy link
Member

In debug mode, rust doesn't merge statics which makes all rsx generate unique template pointers. That causes state to be lost when switching between identical rsx blocks only in debug mode. We generate identical rsx blocks for layouts in the router. This PR fixes the issue by comparing by value in debug mode and by pointer in release mode

Fixes #3235

@ealmloff ealmloff added bug Something isn't working core relating to the core implementation of the virtualdom labels Jan 22, 2025
@ealmloff ealmloff marked this pull request as ready for review January 22, 2025 19:14
@ealmloff ealmloff requested a review from a team as a code owner January 22, 2025 19:14
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
1 participant