Skip to content

Fix hydration and number formatting - #118

Open
litury wants to merge 4 commits into
chore/frontend-dev-setupfrom
fix/ssr-formatting
Open

litury wants to merge 4 commits into
chore/frontend-dev-setupfrom
fix/ssr-formatting

Conversation

@litury

@litury litury commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Issue

Locale-dependent formatting and time calculations could produce different content on the server and in the browser, causing hydration mismatches.

This PR is based on #117.

Things done

  • Use non-breaking spaces for thousands separators across both themes and OG output
  • Format absolute dates consistently in UTC
  • Share the initial render timestamp between server and client, then update relative times and countdowns after hydration
  • Add formatting and render-clock regression tests and document SSR-safe formatting
  • Verified Biome, TypeScript, 66 tests and the production build; checked hydration across both themes

@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dashscan Ready Ready Preview Oct 28, 2026 9:32am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — cb531e0b Deployed Oct 28, 2026 by vercel[bot]
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