Commit b729314
fix(ui): resolve hydration mismatch, infinite loop, and missing assets
- Add suppressHydrationWarning to <html>/<body>/<div.app> to suppress
server/client theme+lang state differences during SSR hydration
- Add mounted gate in ClientLayout so PWA/call modals only render
client-side, eliminating React #418 hydration error
- Rewrite useI18n hook with stable module-level subscribe functions and
useRef-cached t() to eliminate React #185 infinite update loop
- Copy static/ assets (favicon, logo, hero, fonts, sw.js, etc.) to
public/ so Next.js serves them — fixes inter-var.woff2 404
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fca3738 commit b729314
59 files changed
Lines changed: 464 additions & 40 deletions
File tree
- public
- .well-known
- fonts
- icons
- src
- app
- lib/hooks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments