mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
1.5 KiB
1.5 KiB
Requests from /telemetry (7 Nov)
- components/Shell.jsx
FooterHTML(shared footer): hydration mismatch. The 7 Nov critic saw Next's red "1 Issue" badge ("A tree hydrated but some attributes of the server rendered HTML didn't match") on 3 of 4 fresh loads of /telemetry and 4 of 4 of /tunnel, pointing at the footer.FooterHTMLrenders the live footer as adangerouslySetInnerHTMLstring, so React compares every attribute inside it. Likely causes, in order: (1) the footer's "Ask Hanzo anything" input is touched before hydration (an extension, autofill, or a test tool's screenshot addingstyle=""/ caret styles to inputs), and any such attribute on the server string's elements counts as a mismatch; (2) a chrome script (Chrome.jsx,HeaderTools.jsx,Ask.jsx) writesdata-*attributes into the injected markup before React hydrates it. Asked for: addsuppressHydrationWarningon the two shell wrappers, or mount the footer markup after hydration (render an empty wrapper on the server pass, fill it in an effect), so a touched input never raises the badge on every page. - components/Ask.jsx (phone ask bar): on phones the header keeps Hanzo's solid "Try Hanzo", so a page whose own ask differs ("View on GitHub") shows two solids on its first screen unless the page outlines its own button. /telemetry outlines its "View on GitHub" at ≤700px. Asked for: on phones, the header's button goes quiet while the page's own ask is on screen, as it already does on desktop.