Skip to content

fix(hydration): resolve SSR mismatches across layout and UI components - #33

Merged
hateem2121 merged 1 commit into
mainfrom
fix/hydration-ssr-patterns
Jul 28, 2026
Merged

hateem2121 merged 1 commit into
mainfrom
fix/hydration-ssr-patterns

Conversation

@hateem2121

Copy link
Copy Markdown
Owner

Resolves HY-2, HY-3, HY-4, HY-5, HY-6\n\nThis PR addresses five distinct React 19 hydration issues across various components:\n- Replaces Math.random() DOM IDs with deterministic useId() (HY-2)\n- Replaces Date.now() fallback in render with a static string (HY-3)\n- Converts invalid useLayoutEffect to useEffect (HY-4)\n- Adds suppressHydrationWarning for footer copyright year boundaries (HY-5)\n- Ensures ModelViewerErrorBoundary constructor initial state is deterministic (HY-6)\n\n- No window/document/Math.random()/Date.now() in render paths.

@hateem2121
hateem2121 merged commit 652f636 into main Jul 28, 2026
11 of 13 checks passed
@hateem2121
hateem2121 deleted the fix/hydration-ssr-patterns branch July 28, 2026 06:47
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.

1 participant