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

Ensure use id works #411

Merged
merged 2 commits into from
Jan 12, 2025
Merged

Ensure use id works #411

merged 2 commits into from
Jan 12, 2025

Conversation

JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented Jan 12, 2025

CC @f0x52

Resolves #407

This avoids us nullifying the parent pointer which leads us to have unique id across streaming boundaries.

Tangent: I did think about preactjs/preact#4442 and how currently in Preact we might not wait for a boundary to finish streaming in. Which might fallback to normal rendering if the JS bundle loads faster than the boundary streaming in, we might need to fix this as part of hydration 2.0 as well.

@JoviDeCroock JoviDeCroock merged commit c819f51 into main Jan 12, 2025
1 check passed
@JoviDeCroock JoviDeCroock deleted the ensure-use-id-works branch January 12, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useId in Suspense boundary re-render resets counter
2 participants