Repository navigation
Fix locale-switch hydration mismatches while preserving UI - #7
Merged
Merged
Conversation
Preserve incoming Fern SSR labels and hydration strategies instead of rewriting labels to English or forcing client-only remounts. Defer existing UI label sync past the current render frame and wait for React host bindings inside deferred Suspense content before mutating labels. Drain pending retries after adoption. Keep all visible dictionaries, navigation behavior and the Safari renderer guard unchanged. Cover both loading phases across all locales and post-render timing with regression checks.
6mm-official
approved these changes
Nov 18, 2026
6mm-official
left a comment
Contributor
There was a problem hiding this comment.
Reviewed c8f6aa8. No blocking findings in the SSR preservation, deferred React binding checks, nested-island readiness, or disconnected-node cleanup. Local npm run check passes (97 workflow, 9 navigation, and 19 Safari guard tests, plus documentation and Fern validation); the PR CI including Chromium/WebKit regressions is green. The README records the React DOM marker compatibility boundary for future renderer upgrades.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switching languages rewrote incoming server-rendered UI labels to English before Fern initialized React, producing recoverable React #418 errors. Remove that normalization and its forced client-only fallback. Keep the existing label translations, but schedule them in a post-render task after island readiness so deferred React content can finish its current render turn. A read-only React DOM ownership check also waits for host bindings inside delayed Suspense boundaries; only pending connected targets are retried, and the queue drains after adoption.
The interface dictionaries, article content, CSS, navigation behavior and Safari renderer-loading workaround are unchanged. New regressions preserve incoming SSR text, attributes and loading strategies across all 20 locales, before and after the interface bridge loads, and verify that localization waits beyond the current render frame.
Validation:
Native Safari 26.6.2 WebDriver acceptance was unavailable because Allow Remote Automation is disabled; WebKit results are not presented as native Safari results.